diff options
Diffstat (limited to 'config/autoconfigbackup')
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.php b/config/autoconfigbackup/autoconfigbackup.php index f0c5741d..e43620c4 100644 --- a/config/autoconfigbackup/autoconfigbackup.php +++ b/config/autoconfigbackup/autoconfigbackup.php @@ -221,6 +221,7 @@ function get_hostnames() { curl_close($curl_session); } if(!$input_errors && $data) { + conf_mount_rw(); if(config_restore("/tmp/config_restore.xml") == 0) { $savemsg = "Successfully reverted the pfSense configuration to revision " . urldecode($_REQUEST['newver']) . "."; $savemsg .= <<<EOF @@ -238,7 +239,8 @@ EOF; } else { log_error("There was an error when restoring the AutoConfigBackup item"); } - //unlink("/tmp/config_restore.xml"); + unlink_if_exists("/tmp/config_restore.xml"); + conf_mount_ro(); } if($_REQUEST['download']) { // Phone home and obtain backups |