summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense-org.local>2009-08-24 16:03:41 -0400
committerScott Ullrich <sullrich@pfsense-org.local>2009-08-24 16:03:41 -0400
commit888e7a271d8ebf9dfa28d86c14188f4a029d83eb (patch)
tree7815e1259346b0af5140c799bf883f05d0eb2839 /usr/local/www/diag_backup.php
parentfdd20aba301dbcae0c4fb3441d347eb3b3f6b93f (diff)
downloadpfsense-888e7a271d8ebf9dfa28d86c14188f4a029d83eb.zip
pfsense-888e7a271d8ebf9dfa28d86c14188f4a029d83eb.tar.gz
Change the verson to 1.0 before running the configuration upgrade code in order to migrate items such as the default gateway and such
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 65b0be1..a8a1ada 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -265,7 +265,6 @@ if ($_POST) {
$data = str_replace("m0n0wall", "pfsense", $data);
$m0n0wall_upgrade = true;
}
-
if($_POST['restorearea']) {
/* restore a specific area of the configuration */
if(!stristr($data, $_POST['restorearea'])) {
@@ -316,6 +315,10 @@ if ($_POST) {
foreach($ifdescrs as $iface)
$config['interfaces'][$iface]['descr'] = remove_bad_chars($config['interfaces'][$iface]['descr']);
unlink_if_exists("{$g['tmp_path']}/config.cache");
+ // Reset configuration version to something low
+ // in order to force the config upgrade code to
+ // run through with all steps that are required.
+ $config['system']['version'] = "1.0";
write_config();
add_base_packages_menu_items();
convert_config();
OpenPOWER on IntegriCloud