mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add config upgrade code to update package names. Ticket #6118
This commit is contained in:
parent
d239edd157
commit
297ace668e
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<pfsense>
|
||||
<version>15.3</version>
|
||||
<version>15.4</version>
|
||||
<lastchange/>
|
||||
<system>
|
||||
<optimization>normal</optimization>
|
||||
|
||||
@ -99,7 +99,7 @@ $g = array(
|
||||
"disablecrashreporter" => false,
|
||||
"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php",
|
||||
"debug" => false,
|
||||
"latest_config" => "15.3",
|
||||
"latest_config" => "15.4",
|
||||
"nopkg_platforms" => array("cdrom"),
|
||||
"minimum_ram_warning" => "101",
|
||||
"minimum_ram_warning_text" => "128 MB",
|
||||
|
||||
@ -4978,4 +4978,17 @@ function upgrade_152_to_153() {
|
||||
}
|
||||
}
|
||||
}
|
||||
function upgrade_153_to_154() {
|
||||
global $config;
|
||||
|
||||
// rename packages from 2.1.x
|
||||
$rename_arr = array("Quagga OSPF" => "Quagga_OSPF", "System Patches" => "System_Patches");
|
||||
if (is_array($config['installedpackages']['package'])) {
|
||||
foreach ($config['installedpackages']['package'] as $idx => $pkg) {
|
||||
if (key_exists($pkg['name'], $rename_arr)) {
|
||||
$config['installedpackages']['package'][$idx]['name'] == $rename_arr[$pkg['name']];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user