mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unset old CA and Cert in system config
This looked odd. Why would we leave behind the old "ca" and "cert" section in $config["system"]? I guess it would do no harm, but seems confusing for the future to have some unused entries like this remaining in the config. Should a piece of code be put into the latest upgrade function to clean out these in any current config?
This commit is contained in:
parent
775b46fa4b
commit
661de3e792
@ -2547,9 +2547,11 @@ function upgrade_066_to_067() {
|
||||
global $config;
|
||||
if (isset($config['system']['ca'])) {
|
||||
$config['ca'] = $config['system']['ca'];
|
||||
unset($config['system']['ca']);
|
||||
}
|
||||
if (isset($config['system']['cert'])) {
|
||||
$config['cert'] = $config['system']['cert'];
|
||||
unset($config['system']['cert']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user