Skip to content

Commit

Permalink
Correct SSL paths if changed by the restore of the parent domain #64
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Dec 27, 2023
1 parent 002e0a2 commit c49273a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2623,6 +2623,13 @@ sub feature_restore
&virtual_server::refresh_ssl_cert_expiry($d);
&virtual_server::sync_combined_ssl_cert($d);
}
else {
# Make sure the config uses the correct SSL path, in case it was
# changed on restore
&feature_save_web_ssl_file($d, 'cert', $d->{'ssl_cert'});
&feature_save_web_ssl_file($d, 'key', $d->{'ssl_key'});
&feature_save_web_ssl_file($d, 'ca', $d->{'ssl_chain'});
}

return 1;
}
Expand Down

0 comments on commit c49273a

Please sign in to comment.