diff --git a/virtual_feature.pl b/virtual_feature.pl index 2800a3a..679f2e1 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -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; }