diff options
-rw-r--r-- | etc/phpshellsessions/cvssync | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index d0b747c..5b1ca6d 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -81,7 +81,7 @@ if($command_split[2]) { create_supfile($branch); if($argv[4] == "NOBACKUP") - $nobackup=true; + $nobackup = true; else $nobackup = false; @@ -108,10 +108,11 @@ if($branch == "RESTORE" && $g['platform'] == "pfSense") { exec("tar Uxpf /root/cvssync_backup.tgz -C /"); post_cvssync_commands(); exit(); -} else { - $nobackup = true; // do not backup embedded, livecd } +if($g['platform'] == "embedded" || $g['platform'] == "livecd" || $g['platform'] == "wrap") + $nobackup = true; // do not backup embedded, livecd + if($nobackup == false) { echo "===> Backing up current pfSense information...\n"; echo "===> Please wait... "; |