Remove old dnssec-keygen style files during upgrade

This commit is contained in:
Joeri Capens 2017-12-29 00:24:11 +01:00
parent ab1112eed9
commit 0ccfd70e2c
2 changed files with 12 additions and 1 deletions

View File

@ -74,7 +74,7 @@ $g = array(
"disablecrashreporter" => false,
"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php",
"debug" => false,
"latest_config" => "17.3",
"latest_config" => "17.4",
"minimum_ram_warning" => "101",
"minimum_ram_warning_text" => "128 MB",
"wan_interface_name" => "wan",

View File

@ -5493,6 +5493,17 @@ function upgrade_172_to_173() {
}
}
/*
* Delete old Dynamic DNS dnssec-keygen style files,
* they are replaced with a simpler single ddns-confgen style file.
*/
function upgrade_173_to_174() {
global $g;
unlink_if_exists("{$g['varetc_path']}/K*+157+00000.key");
unlink_if_exists("{$g['varetc_path']}/K*+157+00000.private");
}
/*
* Special function that is called independent of current config version. It's
* a workaround to have config_upgrade running on older versions after next