summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-23 00:04:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-23 00:04:03 +0000
commit0c15a747771da152a69ecd504c6f7e036888c02d (patch)
treec5d3f553a74c39a0087420b6cd456c174e672d7d
parenteb95ba843a31cfc7dcaf55827d6ddded9089a358 (diff)
downloadpfsense-0c15a747771da152a69ecd504c6f7e036888c02d.zip
pfsense-0c15a747771da152a69ecd504c6f7e036888c02d.tar.gz
Correctly set nobackup flag
-rw-r--r--etc/phpshellsessions/cvssync7
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... ";
OpenPOWER on IntegriCloud