From d7668531e790d4c6aea4e93390577b36da94104f Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Tue, 22 Jul 2025 08:48:29 +0200 Subject: [PATCH] wallos: add cron in installer for yearly cost (#6133) * wallos: fix: yearly cost * Update wallos.sh * Update wallos.sh --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/wallos.sh | 3 +++ install/wallos-install.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/ct/wallos.sh b/ct/wallos.sh index 2b5487dee..57fb27f21 100644 --- a/ct/wallos.sh +++ b/ct/wallos.sh @@ -41,6 +41,9 @@ function update_script() { rm -rf /opt/wallos/db/wallos.empty.db mv /opt/wallos.db /opt/wallos/db/wallos.db mv /opt/logos/* /opt/wallos/images/uploads/logos + if ! grep -q "storetotalyearlycost.php" /opt/wallos.cron; then + echo "30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1" >> /opt/wallos.cron + fi chown -R www-data:www-data /opt/wallos chmod -R 755 /opt/wallos mkdir -p /var/log/cron diff --git a/install/wallos-install.sh b/install/wallos-install.sh index 5d40739a7..19b8aa82a 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -64,6 +64,7 @@ cat </opt/wallos.cron */2 * * * * php /opt/wallos/endpoints/cronjobs/sendverificationemails.php >> /var/log/cron/sendverificationemail.log 2>&1 */2 * * * * php /opt/wallos/endpoints/cronjobs/sendresetpasswordemails.php >> /var/log/cron/sendresetpasswordemails.log 2>&1 0 */6 * * * php /opt/wallos/endpoints/cronjobs/checkforupdates.php >> /var/log/cron/checkforupdates.log 2>&1 +30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1 EOF crontab /opt/wallos.cron msg_ok "Crontabs setup"