Skip to content
Snippets Groups Projects
Commit d61be8a3 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch...

Merge branch '6301-delete-ssl-cert-symlinks-in-website-ssl-folder-when-acme-sh-is-used' into 'develop'

Resolve "Delete SSL cert symlinks in website ssl folder when acme.sh is used"

Closes #6301

See merge request ispconfig/ispconfig3!1578
parents 8bb306ef 6ef85318
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment