From 5f123711453dd691cadb90ddafa2b04ec791635c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 12 Jul 2009 16:30:18 -0400 Subject: [PATCH] Call conf_mount_rw() early --- etc/phpshellsessions/gitsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 238f5d042f..e39a1bedfc 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -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");