From 91c3b7d9a63a4e8e17f8cfecb7e3e3568fcb1642 Mon Sep 17 00:00:00 2001 From: Jesse Norell <jesse@kci.net> Date: Wed, 17 Nov 2021 07:47:31 -0700 Subject: [PATCH] installer: fix checked wrong cert files for removal --- install/lib/installer_base.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index af4132a5e3..d5f3f6b6aa 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -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); } -- GitLab