mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set CODIR early, remove directories as needed
This commit is contained in:
parent
5a038d6a08
commit
fcddf282aa
@ -4,7 +4,10 @@
|
||||
* Part of the pfSense project pfSsh.php subsystem
|
||||
*/
|
||||
|
||||
exec("rm -rf /home/pfsense /root/pfsense");
|
||||
|
||||
$GIT_REPO="http://gitweb.pfsense.org/pfsense/mainline.git";
|
||||
$CODIR = "/root/pfsense/";
|
||||
|
||||
global $argv;
|
||||
global $command_split;
|
||||
@ -13,6 +16,7 @@ conf_mount_rw();
|
||||
|
||||
echo "\nRemoving downloaded cvssync data, please wait...";
|
||||
exec("/bin/rm -rf /home/pfsense");
|
||||
exec("mkdir -p /home/pfsense");
|
||||
echo " done.\n";
|
||||
|
||||
unlink_if_exists("/tmp/config.cache");
|
||||
@ -66,13 +70,6 @@ if($argv[4] == "NOBACKUP")
|
||||
else
|
||||
$nobackup = false;
|
||||
|
||||
$CODIR = "/root/pfsense/";
|
||||
|
||||
// XXX Temporary until we get git under control.
|
||||
if(is_dir("$CODIR/pfSenseGITREPO"))
|
||||
exec("rm -rf $CODIR/pfSenseGITREPO");
|
||||
|
||||
|
||||
exec("mkdir -p /root/pfsense/$BRANCHTAG");
|
||||
|
||||
$found = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user