Skip to content
Snippets Groups Projects
Commit 928ef6ec authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch '5753-show-letsencrypt-log-even-when-acme-sh-is-installed' into 'develop'

Resolve "Show LetsEncrypt.log even when acme.sh is installed"

Closes #5753

See merge request ispconfig/ispconfig3!1189
parents 249c2ab4 371fdac9
No related branches found
No related tags found
No related merge requests found
...@@ -561,13 +561,11 @@ class monitor_tools { ...@@ -561,13 +561,11 @@ class monitor_tools {
} }
break; break;
case 'log_letsencrypt': case 'log_letsencrypt':
if ($dist == 'debian') { if(file_exists('/root/.acme.sh/acme.sh') && file_exists('/root/.acme.sh/acme.sh.log')) {
$logfile = '/var/log/letsencrypt/letsencrypt.log'; $logfile = '/root/.acme.sh/acme.sh.log';
} elseif ($dist == 'redhat') { } elseif(file_exists('/usr/local/ispconfig/server/scripts/acme.sh') && file_exists('/usr/local/ispconfig/server/scripts/acme.sh.log')) {
$logfile = '/var/log/letsencrypt/letsencrypt.log'; $logfile = '/usr/local/ispconfig/server/scripts/acme.sh.log';
} elseif ($dist == 'suse') { } else {
$logfile = '/var/log/letsencrypt/letsencrypt.log';
} elseif ($dist == 'gentoo') {
$logfile = '/var/log/letsencrypt/letsencrypt.log'; $logfile = '/var/log/letsencrypt/letsencrypt.log';
} }
break; break;
......
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