File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ function update_script() {
4141 rm -rf /opt/wallos/db/wallos.empty.db
4242 mv /opt/wallos.db /opt/wallos/db/wallos.db
4343 mv /opt/logos/* /opt/wallos/images/uploads/logos
44+ if ! grep -q " storetotalyearlycost.php" /opt/wallos.cron; then
45+ echo " 30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1" >> /opt/wallos.cron
46+ fi
4447 chown -R www-data:www-data /opt/wallos
4548 chmod -R 755 /opt/wallos
4649 mkdir -p /var/log/cron
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ cat <<EOF >/opt/wallos.cron
6464*/2 * * * * php /opt/wallos/endpoints/cronjobs/sendverificationemails.php >> /var/log/cron/sendverificationemail.log 2>&1
6565*/2 * * * * php /opt/wallos/endpoints/cronjobs/sendresetpasswordemails.php >> /var/log/cron/sendresetpasswordemails.log 2>&1
66660 */6 * * * php /opt/wallos/endpoints/cronjobs/checkforupdates.php >> /var/log/cron/checkforupdates.log 2>&1
67+ 30 1 * * 1 php /opt/wallos/endpoints/cronjobs/storetotalyearlycost.php >> /var/log/cron/storetotalyearlycost.log 2>&1
6768EOF
6869crontab /opt/wallos.cron
6970msg_ok " Crontabs setup"
You can’t perform that action at this time.
0 commit comments