summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
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/usr/local/www/diag_backup.php
parenteec44c64709c6e9dfc86f734476e547c3c2f67e8 (diff)
downloadpfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.zip
pfsense-1289c0c17c38048b3f3fa18ff4a0f5a3d3533fdd.tar.gz
Remove all calls to conf_mount_r* functions
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index db38df1..bd3de22 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -164,9 +164,7 @@ function check_and_returnif_section_exists($section) {
if ($_POST['apply']) {
ob_flush();
flush();
- conf_mount_rw();
clear_subsystem_dirty("restore");
- conf_mount_ro();
exit;
}
@@ -311,7 +309,6 @@ if ($_POST) {
write_config();
add_base_packages_menu_items();
convert_config();
- conf_mount_ro();
}
filter_configure();
$savemsg = gettext("The configuration area has been restored. The firewall may need to be rebooted.");
@@ -325,7 +322,6 @@ if ($_POST) {
file_put_contents($_FILES['conffile']['tmp_name'], $data);
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
/* this will be picked up by /index.php */
- conf_mount_rw();
mark_subsystem_dirty("restore");
touch("/conf/needs_package_sync_after_reboot");
/* remove cache, we will force a config reboot */
@@ -349,7 +345,6 @@ if ($_POST) {
write_config();
add_base_packages_menu_items();
convert_config();
- conf_mount_ro();
}
if ($m0n0wall_upgrade == true) {
if ($config['system']['gateway'] <> "") {
@@ -411,7 +406,6 @@ if ($_POST) {
write_config();
add_base_packages_menu_items();
convert_config();
- conf_mount_ro();
$savemsg = gettext("The m0n0wall configuration has been restored and upgraded to pfSense.");
mark_subsystem_dirty("restore");
}
OpenPOWER on IntegriCloud