From 6ef85318c3d32e9c38cf5fda6e787debb3b06b31 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Mon, 14 Mar 2022 12:18:51 +0000 Subject: [PATCH] Update letsencrypt.inc.php --- server/lib/classes/letsencrypt.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/lib/classes/letsencrypt.inc.php b/server/lib/classes/letsencrypt.inc.php index df6561bd66..6cb0f7927c 100644 --- a/server/lib/classes/letsencrypt.inc.php +++ b/server/lib/classes/letsencrypt.inc.php @@ -415,6 +415,10 @@ class letsencrypt { if($use_acme) { $letsencrypt_cmd = $this->get_acme_command($temp_domains, $key_file, $bundle_file, $crt_file, $server_type); $allow_return_codes = array(2); + // Cleanup ssl cert symlinks, if exists + if(@is_link($key_file)) unlink($key_file); + if(@is_link($bundle_file)) unlink($bundle_file); + if(@is_link($crt_file)) unlink($crt_file); } else { $letsencrypt_cmd = $this->get_certbot_command($temp_domains); umask($old_umask); -- GitLab