Revision 16f8df9a
Added by Joeri Capens over 7 years ago
src/etc/inc/upgrade_config.inc | ||
---|---|---|
5494 | 5494 |
} |
5495 | 5495 |
|
5496 | 5496 |
/* |
5497 |
* Delete old Dynamic DNS dnssec-keygen style files, |
|
5498 |
* they are replaced with a simpler single ddns-confgen style file. |
|
5497 |
* Dynamic DNS nsupdate keyfiles have been replaced with a simpler ddns-confgen style file. |
|
5499 | 5498 |
*/ |
5500 | 5499 |
function upgrade_173_to_174() { |
5501 |
global $g; |
|
5500 |
global $config;
|
|
5502 | 5501 |
|
5503 |
unlink_if_exists("{$g['varetc_path']}/K*+157+00000.key"); |
|
5504 |
unlink_if_exists("{$g['varetc_path']}/K*+157+00000.private"); |
|
5502 |
/* Remove unused keytype field. */ |
|
5503 |
foreach ($config['dnsupdates']['dnsupdate'] as $i => &$dnsupdate) { |
|
5504 |
unset($dnsupdate['keytype']); |
|
5505 |
} |
|
5505 | 5506 |
} |
5506 | 5507 |
|
5507 | 5508 |
/* |
Also available in: Unified diff
Delete keytype field from config, remove unnecessary file cleanup.