diff options
author | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 16:03:41 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 16:03:41 -0400 |
commit | 888e7a271d8ebf9dfa28d86c14188f4a029d83eb (patch) | |
tree | 7815e1259346b0af5140c799bf883f05d0eb2839 /usr/local/www/diag_backup.php | |
parent | fdd20aba301dbcae0c4fb3441d347eb3b3f6b93f (diff) | |
download | pfsense-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-x | usr/local/www/diag_backup.php | 5 |
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(); |