aboutsummaryrefslogtreecommitdiffstats
path: root/config/cron/cron.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-07 13:00:05 -0500
committerjim-p <jimp@pfsense.org>2011-01-07 13:00:05 -0500
commit9c52365bf77501b329f05f9d6ff166b3d03c988b (patch)
tree836c996ab903bdfea400228fcc6b7e4163cd8090 /config/cron/cron.inc
parente43401d02bea133e90620da521fd1a8180e82d97 (diff)
downloadpfsense-packages-9c52365bf77501b329f05f9d6ff166b3d03c988b.tar.gz
pfsense-packages-9c52365bf77501b329f05f9d6ff166b3d03c988b.tar.bz2
pfsense-packages-9c52365bf77501b329f05f9d6ff166b3d03c988b.zip
Fix cron package install for 1.2.x
Diffstat (limited to 'config/cron/cron.inc')
-rw-r--r--config/cron/cron.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/config/cron/cron.inc b/config/cron/cron.inc
index 198e41db..e5df104a 100644
--- a/config/cron/cron.inc
+++ b/config/cron/cron.inc
@@ -69,17 +69,13 @@ function cron_install_command()
conf_mount_rw();
config_lock();
- if (!is_dir('/usr/local/www/packages/')) {
- exec("mkdir /usr/local/www/packages/");
- }
-
if (!is_dir('/usr/local/www/packages/cron/')) {
- exec("mkdir /usr/local/www/packages/cron/");
+ exec("mkdir -p /usr/local/www/packages/cron/");
}
//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");
+ exec("cp /usr/local/pkg/cron.tmp /usr/local/www/packages/cron/cron.php");
+ exec("cp /usr/local/pkg/cron_edit.tmp /usr/local/www/packages/cron/cron_edit.php");
//write_config();