aboutsummaryrefslogtreecommitdiffstats
path: root/config/backup/backup.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-06-13 15:01:06 -0600
committermcrane <mctch@yahoo.com>2009-06-13 15:02:26 -0600
commit7e7fb10565a04e82c507d83ddaa0061c725cb294 (patch)
tree34e832d3cd1ab73e4bbd733548b8af92132e0dcc /config/backup/backup.inc
parentd3eaa1837b5e99e8377658b7bc48a29abd7ac15c (diff)
downloadpfsense-packages-7e7fb10565a04e82c507d83ddaa0061c725cb294.tar.gz
pfsense-packages-7e7fb10565a04e82c507d83ddaa0061c725cb294.tar.bz2
pfsense-packages-7e7fb10565a04e82c507d83ddaa0061c725cb294.zip
Backup and TFTP package change backup directory to /root/backup/
Diffstat (limited to 'config/backup/backup.inc')
-rw-r--r--config/backup/backup.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/backup/backup.inc b/config/backup/backup.inc
index fa2783d6..b6adfbc9 100644
--- a/config/backup/backup.inc
+++ b/config/backup/backup.inc
@@ -95,6 +95,11 @@ function php_install_command()
if (!is_dir('/usr/local/www/packages/backup/')) {
exec("mkdir /usr/local/www/packages/backup/");
}
+
+ //create the backup directory
+ if (!is_dir('/root/backup/')) {
+ exec("mkdir /root/backup/");
+ }
//rename PHP files from .tmp to .php
exec("cp /tmp/backup.tmp /usr/local/www/packages/backup/backup.php");