Skip to content

Commit

Permalink
Merge pull request pfsense#1770 from phil-davis/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Buechler committed Jul 22, 2015
2 parents 0ec6cc2 + 564f135 commit 909d9ec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etc/inc/upgrade_config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

Expand Down Expand Up @@ -3753,6 +3755,14 @@ function upgrade_116_to_117() {
function upgrade_117_to_118() {
global $config;

// Unset any old CA and Cert in the system section that might still be there from when upgrade_066_to_067 did not unset them.
if (isset($config['system']['ca'])) {
unset($config['system']['ca']);
}
if (isset($config['system']['cert'])) {
unset($config['system']['cert']);
}

if (!isset($config['ipsec']['phase1'])) {
return;
}
Expand Down

0 comments on commit 909d9ec

Please sign in to comment.