From 552d035cd265b8f4ca1c97bfc09e79c7f846423c Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 15 Aug 2026 23:02:19 +0200 Subject: [PATCH] wallos: run db migration after apache reload on update --- ct/wallos.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/wallos.sh b/ct/wallos.sh index b1b193ea3..4ecd57ce8 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -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