Call conf_mount_rw() early

This commit is contained in:
Scott Ullrich 2009-07-12 16:30:18 -04:00
parent 865af1773d
commit 5f12371145

View File

@ -4,6 +4,8 @@
* Part of the pfSense project pfSsh.php subsystem
*/
conf_mount_rw();
exec("rm -rf /home/pfsense /root/pfsense /pfSenseGITREPO/");
$GIT_REPO="http://gitweb.pfsense.org/pfsense/mainline.git";
@ -12,8 +14,6 @@ $CODIR = "/root/pfsense/";
global $argv;
global $command_split;
conf_mount_rw();
echo "\nRemoving downloaded cvssync data, please wait...";
exec("/bin/rm -rf /home/pfsense");
exec("mkdir -p /home/pfsense");