From 4d3c064e775988c46513d142944330adcdf362d1 Mon Sep 17 00:00:00 2001 From: CrazyWolf13 Date: Fri, 21 Aug 2026 13:53:26 +0200 Subject: [PATCH] fix: wallos --- ct/wallos.sh | 3 ++- install/wallos-install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/wallos.sh b/ct/wallos.sh index 4ecd57ce8..195fe57c6 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -55,7 +55,8 @@ function update_script() { msg_ok "Apache2 Reloaded" msg_info "Running Database Migration" - $STD curl http://localhost/endpoints/db/migrate.php + cd /opt/wallos + $STD sudo -u www-data php /opt/wallos/endpoints/db/migrate.php msg_ok "Ran Database Migration" msg_ok "Updated successfully!" fi diff --git a/install/wallos-install.sh b/install/wallos-install.sh index 982cf91c3..2694a32bd 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -40,7 +40,7 @@ EOF $STD a2ensite wallos.conf $STD a2dissite 000-default.conf $STD systemctl restart apache2 -$STD curl http://localhost/endpoints/db/migrate.php +$STD sudo -u www-data php /opt/wallos/endpoints/db/migrate.php msg_ok "Installed Wallos" msg_info "Setting up Crontabs"