aboutsummaryrefslogtreecommitdiffstats
path: root/config/cron/cron.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-04 11:19:21 -0500
committerjim-p <jimp@pfsense.org>2011-01-04 11:19:21 -0500
commit5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce (patch)
tree47f99ba29ab1e58951a50d277428a11bc9b9fbd1 /config/cron/cron.inc
parent4f3480fb7a7d3662e6c87fb900390465c6ef5759 (diff)
downloadpfsense-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.
Diffstat (limited to 'config/cron/cron.inc')
-rw-r--r--config/cron/cron.inc9
1 files changed, 3 insertions, 6 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();