Skip to content
Snippets Groups Projects
Commit 91c3b7d9 authored by Jesse Norell's avatar Jesse Norell
Browse files

installer: fix checked wrong cert files for removal

parent 3fd9dd1b
No related branches found
No related tags found
1 merge request!1541Resolve "installer symlink warnings / mishandling(?)"
Pipeline #9836 passed
...@@ -3133,8 +3133,7 @@ class installer_base { ...@@ -3133,8 +3133,7 @@ class installer_base {
// certbot returns with 0 on issue for already existing certificate // certbot returns with 0 on issue for already existing certificate
$acme_cert_dir = '/etc/letsencrypt/live/' . $hostname; $acme_cert_dir = '/etc/letsencrypt/live/' . $hostname;
foreach (array( 'fullchain.pem', 'privkey.pem' ) as $f) { foreach (array( $ssl_crt_file, $ssl_key_file) as $f) {
$f = $acme_cert_dir . '/' . $f;
if (file_exists($f) && ! is_link($f)) { if (file_exists($f) && ! is_link($f)) {
unlink($f); unlink($f);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment