Skip to content

Commit 6ef8531

Browse files
author
Till Brehm
committed
Update letsencrypt.inc.php
1 parent 8bb306e commit 6ef8531

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/lib/classes/letsencrypt.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ public function request_certificates($data, $server_type = 'apache') {
415415
if($use_acme) {
416416
$letsencrypt_cmd = $this->get_acme_command($temp_domains, $key_file, $bundle_file, $crt_file, $server_type);
417417
$allow_return_codes = array(2);
418+
// Cleanup ssl cert symlinks, if exists
419+
if(@is_link($key_file)) unlink($key_file);
420+
if(@is_link($bundle_file)) unlink($bundle_file);
421+
if(@is_link($crt_file)) unlink($crt_file);
418422
} else {
419423
$letsencrypt_cmd = $this->get_certbot_command($temp_domains);
420424
umask($old_umask);

0 commit comments

Comments
 (0)