diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-09-06 20:25:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-09-06 20:25:51 +0000 |
commit | bfc956c056f19a535843507dbeff8740aa7aafcc (patch) | |
tree | 7103d34476655b8e2c4209c569f37de026cf905a /etc | |
parent | 75cf30df1a04af293216e972e9e6de5dec03b5a3 (diff) | |
download | pfsense-bfc956c056f19a535843507dbeff8740aa7aafcc.zip pfsense-bfc956c056f19a535843507dbeff8740aa7aafcc.tar.gz |
Move cvssync functions to /root/
Diffstat (limited to 'etc')
-rw-r--r-- | etc/phpshellsessions/cvssync | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index a5485eb..b1df1e0 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -4,6 +4,12 @@ * Part of the pfSense project pfSsh.php subsystem */ +if(is_dir("/home/pfsense")) { + echo "\nRelocating cvssync..."; + exec("rm -rf /home/pfsense"); + echo " done.\n"; +} + function create_supfile($branch) { if($branch == "HEAD") @@ -13,7 +19,7 @@ function create_supfile($branch) { $supfile = " *default host=cvs.pfsense.com -*default base=/home/pfsense/$branch +*default base=/root/pfsense/$branch *default release=cvs tag=$BRANCHTAG *default delete use-rel-suffix pfSense @@ -72,9 +78,9 @@ create_supfile($branch); if($argv[4] == "NOBACKUP") $nobackup=true; -$CODIR = "/home/pfsense/$branch"; +$CODIR = "/root/pfsense/$branch"; -exec("mkdir -p /home/pfsense/$BRANCHTAG"); +exec("mkdir -p /root/pfsense/$BRANCHTAG"); $found = false; foreach($branches as $branchname => $branchdesc) { @@ -107,7 +113,7 @@ if(!$nobackup) { } echo "===> Checking out $branch\n"; -exec("mkdir -p /home/pfsense/$branch"); +exec("mkdir -p /root/pfsense/$branch"); system("cvsup /var/etc/pfSense-supfile"); exec("rm -rf /usr/local/www/includes/*"); exec("rm -rf /usr/local/www/javascript/*"); |