aboutsummaryrefslogtreecommitdiffstats
path: root/config/backup/backup.inc
diff options
context:
space:
mode:
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");