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"