wallos: run db migration after apache reload on update

This commit is contained in:
MickLesk
2026-08-15 23:02:19 +02:00
parent 91fd6e57a6
commit 552d035cd2
+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