mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-25 05:45:45 +02:00
wallos: run db migration after apache reload on update (#16528)
This commit is contained in:
committed by
GitHub
parent
4ccc82e0a4
commit
85a621993d
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user