Commit 91c3b7d9 authored by Jesse Norell's avatar Jesse Norell
Browse files

installer: fix checked wrong cert files for removal

parent 3fd9dd1b
Pipeline #9836 passed with stage
in 7 minutes and 27 seconds
......@@ -3133,8 +3133,7 @@ class installer_base {
// certbot returns with 0 on issue for already existing certificate
$acme_cert_dir = '/etc/letsencrypt/live/' . $hostname;
foreach (array( 'fullchain.pem', 'privkey.pem' ) as $f) {
$f = $acme_cert_dir . '/' . $f;
foreach (array( $ssl_crt_file, $ssl_key_file) as $f) {
if (file_exists($f) && ! is_link($f)) {
unlink($f);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment