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 +++------ config/cron/cron.xml | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'config') 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 @@ http://www.pfsense.com/packages/config/cron/cron.inc - /tmp/ + /usr/local/www/packages/cron/ 0755 http://www.pfsense.com/packages/config/cron/cron.tmp - /tmp/ + /usr/local/www/packages/cron/ 0755 http://www.pfsense.com/packages/config/cron/cron_edit.tmp -- cgit v1.2.3