Skip to content

Commit 91c3b7d

Browse files
committed
installer: fix checked wrong cert files for removal
1 parent 3fd9dd1 commit 91c3b7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,8 +3133,7 @@ public function make_ispconfig_ssl_cert() {
31333133
// certbot returns with 0 on issue for already existing certificate
31343134

31353135
$acme_cert_dir = '/etc/letsencrypt/live/' . $hostname;
3136-
foreach (array( 'fullchain.pem', 'privkey.pem' ) as $f) {
3137-
$f = $acme_cert_dir . '/' . $f;
3136+
foreach (array( $ssl_crt_file, $ssl_key_file) as $f) {
31383137
if (file_exists($f) && ! is_link($f)) {
31393138
unlink($f);
31403139
}

0 commit comments

Comments
 (0)