From 888e7a271d8ebf9dfa28d86c14188f4a029d83eb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 24 Aug 2009 16:03:41 -0400 Subject: Change the verson to 1.0 before running the configuration upgrade code in order to migrate items such as the default gateway and such --- usr/local/www/diag_backup.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local/www') 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(); -- cgit v1.1