Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 552d035cd2 wallos: run db migration after apache reload on update 2026-08-15 23:02:19 +02:00
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -48,12 +48,15 @@ function update_script() {
chown -R www-data:www-data /opt/wallos
chmod -R 755 /opt/wallos
mkdir -p /var/log/cron
$STD curl http://localhost/endpoints/db/migrate.php
msg_ok "Configured Wallos"
msg_info "Reload Apache2"
systemctl reload apache2
msg_ok "Apache2 Reloaded"
msg_info "Running Database Migration"
$STD curl http://localhost/endpoints/db/migrate.php
msg_ok "Ran Database Migration"
msg_ok "Updated successfully!"
fi
exit
+2 -2
View File
@@ -16,14 +16,14 @@ update_os
msg_warn "WARNING: This script will run an external installer from a third-party source (https://swizzin.ltd/)."
msg_warn "The following code is NOT maintained or audited by our repository."
msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:"
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://raw.githubusercontent.com/swizzin/swizzin/master/setup.sh"
msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://s5n.sh"
echo
read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM
if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
msg_error "Aborted by user. No changes have been made."
exit 10
fi
bash <(curl -fsSL https://raw.githubusercontent.com/swizzin/swizzin/master/setup.sh)
bash <(curl -fsSL https://s5n.sh)
motd_ssh
customize