Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Call cron directly with PHP, no need to go via the webservers (Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
timwhite committed Feb 22, 2016
1 parent 17ee4e0 commit dae1be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions debian/grase-www-portal.cron.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@daily root /usr/share/grase/scripts/mysql_backup

# Most cron scripts have moved to PHP classes actived by cron.php
@hourly nobody wget -q http://127.0.0.1/grase/radmin/cron.php -O -
@reboot nobody wget -q http://127.0.0.1/grase/radmin/cron.php -O -
@hourly nobody REMOTE_ADDR='' php /usr/share/grase/www/radmin/cron.php
@reboot nobody REMOTE_ADDR='' php /usr/share/grase/www/radmin/cron.php
2 changes: 1 addition & 1 deletion debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install_bower_deps(){ # Install Bower and install/upgrade depenencies
}

call_cron(){ # Call cron so certain upgrades can occur
wget -q http://127.0.0.1/grase/radmin/cron.php -O - || true
REMOTE_ADDR='' php /usr/share/grase/www/radmin/cron.php || true
}

fix_dir_perms(){
Expand Down

0 comments on commit dae1be9

Please sign in to comment.