summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-04 00:26:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-04 00:26:31 +0000
commit923e16ed4b70680e9520705ca23a0b9ac4504ff7 (patch)
treedb522c5977a7cd5d0ea74f0874eed26e07ca5869 /usr
parent1ca54f04f64e1377ab768885ccc657307410a933 (diff)
downloadpfsense-923e16ed4b70680e9520705ca23a0b9ac4504ff7.zip
pfsense-923e16ed4b70680e9520705ca23a0b9ac4504ff7.tar.gz
Correct create temporary file
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_backup.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 51c53dd..de26709 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -140,15 +140,16 @@ if ($_POST) {
} else {
/* 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();
+ conf_mount_ro();
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
} else {
$input_errors[] = "The configuration could not be restored.";
}
- }
- /* this will be picked up by /index.php */
- touch("/needs_package_sync");
-
+ }
} else {
$input_errors[] = "The configuration could not be restored (file upload error).";
}
OpenPOWER on IntegriCloud