Skip to content

Commit bd836b2

Browse files
author
Marius Burkard
committed
Merge branch '6254-installer-symlink-warnings-mishandling' into 'develop'
Resolve "installer symlink warnings / mishandling(?)" Closes #6254 See merge request ispconfig/ispconfig3!1541
2 parents f973496 + 91c3b7d commit bd836b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,6 +3133,11 @@ 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( $ssl_crt_file, $ssl_key_file) as $f) {
3137+
if (file_exists($f) && ! is_link($f)) {
3138+
unlink($f);
3139+
}
3140+
}
31363141
symlink($acme_cert_dir . '/fullchain.pem', $ssl_crt_file);
31373142
symlink($acme_cert_dir . '/privkey.pem', $ssl_key_file);
31383143

0 commit comments

Comments
 (0)