summaryrefslogtreecommitdiffstats
path: root/src/etc/phpshellsessions
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-10-12 15:49:43 -0300
committerRenato Botelho <renato@netgate.com>2016-10-12 16:23:14 -0300
commit1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd (patch)
treeaba47ff46f335961f91cae4ba2e228e49209b310 /src/etc/phpshellsessions
parenteec44c64709c6e9dfc86f734476e547c3c2f67e8 (diff)
downloadpfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.zip
pfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.tar.gz
Remove all calls to conf_mount_r* functions
Diffstat (limited to 'src/etc/phpshellsessions')
-rw-r--r--src/etc/phpshellsessions/gitsync6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/etc/phpshellsessions/gitsync b/src/etc/phpshellsessions/gitsync
index 522ba2b..04f70c5 100644
--- a/src/etc/phpshellsessions/gitsync
+++ b/src/etc/phpshellsessions/gitsync
@@ -153,7 +153,6 @@ function run_cmds($cmds) {
}
unlink_if_exists("/tmp/config.cache");
-conf_mount_rw();
if (!file_exists($GIT_BIN)) {
require_once("pkg-utils.inc");
@@ -258,7 +257,6 @@ if (!$found) {
}
if (!$found) {
echo "\nNo valid branch found. Exiting.\n\n";
- conf_mount_ro();
exit;
}
}
@@ -305,13 +303,11 @@ if (!$args[0] && !$upgrading) {
if ($branch == "RESTORE" && $g['platform'] == $g['product_name']) {
if (!file_exists("/root/cvssync_backup.tgz")) {
echo "Sorry, we could not find a previous CVSSync backup file.\n";
- conf_mount_ro();
exit();
}
echo "===> Restoring previous CVSSync backup... Please wait...\n";
exec("tar Uxpf /root/cvssync_backup.tgz -C /");
post_cvssync_commands();
- conf_mount_ro();
exit();
} else {
$nobackup = true; // do not backup embedded
@@ -370,7 +366,6 @@ foreach ($merge_repos as $merge_repo) {
if ($ret <> 0) {
echo "\nMerge failed. Aborting sync.\n\n";
run_cmds($git_cmd);
- conf_mount_ro();
exit;
}
}
@@ -526,4 +521,3 @@ if (!$upgrading) {
echo "Your system is now sync'd.\n\n";
}
-conf_mount_ro();
OpenPOWER on IntegriCloud