summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-04 00:28:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-04 00:28:29 +0000
commit07cd2b4b4bac0086fc4ab5daafcf9c89800a94bb (patch)
tree73a0d221b87f328453cbecc2157170bafebc47c4 /usr
parent923e16ed4b70680e9520705ca23a0b9ac4504ff7 (diff)
downloadpfsense-07cd2b4b4bac0086fc4ab5daafcf9c89800a94bb.zip
pfsense-07cd2b4b4bac0086fc4ab5daafcf9c89800a94bb.tar.gz
Do it in the right order.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_backup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index de26709..44987d8 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -141,10 +141,10 @@ if ($_POST) {
/* restore the entire configuration */
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
/* this will be picked up by /index.php */
- touch("/needs_package_sync");
conf_mount_rw();
- system_reboot();
+ touch("/needs_package_sync");
conf_mount_ro();
+ system_reboot();
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
} else {
$input_errors[] = "The configuration could not be restored.";
OpenPOWER on IntegriCloud