diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-04 00:26:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-04 00:26:31 +0000 |
commit | 923e16ed4b70680e9520705ca23a0b9ac4504ff7 (patch) | |
tree | db522c5977a7cd5d0ea74f0874eed26e07ca5869 /usr/local/www/diag_backup.php | |
parent | 1ca54f04f64e1377ab768885ccc657307410a933 (diff) | |
download | pfsense-923e16ed4b70680e9520705ca23a0b9ac4504ff7.zip pfsense-923e16ed4b70680e9520705ca23a0b9ac4504ff7.tar.gz |
Correct create temporary file
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-x | usr/local/www/diag_backup.php | 9 |
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)."; } |