From 5cb8fc283c38fd1ed9c0f7fa4fa93848483048ce Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 4 Jan 2011 11:19:21 -0500 Subject: Fix for cron saying it needs resync'd if /tmp gets cleared. --- config/cron/cron.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'config/cron/cron.inc') 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(); -- cgit v1.2.3