diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:47:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-23 22:47:18 +0000 |
commit | 84b5f39b77ee50218130f75c076a13eaa3168d4f (patch) | |
tree | 0d73f446fe4064e6888ebd6e29e27930d31d1299 /etc | |
parent | 6064ed7b58b5254eb5a1edce1e259645c03d3d49 (diff) | |
download | pfsense-84b5f39b77ee50218130f75c076a13eaa3168d4f.zip pfsense-84b5f39b77ee50218130f75c076a13eaa3168d4f.tar.gz |
Add fourth parameter NOBACKUP
Diffstat (limited to 'etc')
-rw-r--r-- | etc/phpshellsessions/cvssync | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 6bc1317..a5485eb 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -69,6 +69,9 @@ if($command_split[2]) { } create_supfile($branch); +if($argv[4] == "NOBACKUP") + $nobackup=true; + $CODIR = "/home/pfsense/$branch"; exec("mkdir -p /home/pfsense/$BRANCHTAG"); @@ -94,12 +97,14 @@ if($branch == "RESTORE") { exit(); } -echo "===> Backing up current pfSense information...\n"; -echo "===> Please wait... "; -exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /tmp --exclude /var/run --exclude /var/empty /"); -$size = filesize("/root/cvssync_backup.tgz"); -echo "{$size} bytes.\n\n"; -sleep(5); +if(!$nobackup) { + echo "===> Backing up current pfSense information...\n"; + echo "===> Please wait... "; + exec("tar czPf /root/cvssync_backup.tgz --exclude /root --exclude /dev --exclude /tmp --exclude /var/run --exclude /var/empty /"); + $size = filesize("/root/cvssync_backup.tgz"); + echo "{$size} bytes.\n\n"; + sleep(5); +} echo "===> Checking out $branch\n"; exec("mkdir -p /home/pfsense/$branch"); |