diff options
author | jim-p <jimp@pfsense.org> | 2011-01-04 11:19:21 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-01-04 11:19:21 -0500 |
commit | 5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce (patch) | |
tree | 47f99ba29ab1e58951a50d277428a11bc9b9fbd1 | |
parent | 4f3480fb7a7d3662e6c87fb900390465c6ef5759 (diff) | |
download | pfsense-packages-5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce.tar.gz pfsense-packages-5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce.tar.bz2 pfsense-packages-5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce.zip |
Fix for cron saying it needs resync'd if /tmp gets cleared.
-rw-r--r-- | config/cron/cron.inc | 9 | ||||
-rw-r--r-- | config/cron/cron.xml | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/config/cron/cron.inc b/config/cron/cron.inc index 44d1fc00..198e41db 100644 --- a/config/cron/cron.inc +++ b/config/cron/cron.inc @@ -77,12 +77,9 @@ function cron_install_command() exec("mkdir /usr/local/www/packages/cron/"); } - //rename PHP files from .tmp to .php - exec("cp /tmp/cron.tmp /usr/local/www/packages/cron/cron.php"); - unlink_if_exists("/tmp/cron.tmp"); - - exec("cp /tmp/cron_edit.tmp /usr/local/www/packages/cron/cron_edit.php"); - unlink_if_exists("/tmp/cron_edit.tmp"); + //Copy PHP files from .tmp to .php - don't move or put them in /tmp or the pkg system will miss them if it gets cleared. + exec("cp /usr/local/www/packages/cron/cron.tmp /usr/local/www/packages/cron/cron.php"); + exec("cp /usr/local/www/packages/cron/cron_edit.tmp /usr/local/www/packages/cron/cron_edit.php"); //write_config(); diff --git a/config/cron/cron.xml b/config/cron/cron.xml index 9858df8c..760d3674 100644 --- a/config/cron/cron.xml +++ b/config/cron/cron.xml @@ -81,12 +81,12 @@ <item>http://www.pfsense.com/packages/config/cron/cron.inc</item> </additional_files_needed> <additional_files_needed> - <prefix>/tmp/</prefix> + <prefix>/usr/local/www/packages/cron/</prefix> <chmod>0755</chmod> <item>http://www.pfsense.com/packages/config/cron/cron.tmp</item> </additional_files_needed> <additional_files_needed> - <prefix>/tmp/</prefix> + <prefix>/usr/local/www/packages/cron/</prefix> <chmod>0755</chmod> <item>http://www.pfsense.com/packages/config/cron/cron_edit.tmp</item> </additional_files_needed> |