aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/cron/cron.inc9
-rw-r--r--config/cron/cron.xml4
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>