diff options
Diffstat (limited to 'etc/phpshellsessions/gitsync')
-rw-r--r-- | etc/phpshellsessions/gitsync | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 238f5d0..e39a1be 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"); |