Skip to content

Commit 928ef6e

Browse files
author
Till Brehm
committed
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
2 parents 249c2ab + 371fdac commit 928ef6e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,11 @@ public function _getLogData($log) {
561561
}
562562
break;
563563
case 'log_letsencrypt':
564-
if ($dist == 'debian') {
565-
$logfile = '/var/log/letsencrypt/letsencrypt.log';
566-
} elseif ($dist == 'redhat') {
567-
$logfile = '/var/log/letsencrypt/letsencrypt.log';
568-
} elseif ($dist == 'suse') {
569-
$logfile = '/var/log/letsencrypt/letsencrypt.log';
570-
} elseif ($dist == 'gentoo') {
564+
if(file_exists('/root/.acme.sh/acme.sh') && file_exists('/root/.acme.sh/acme.sh.log')) {
565+
$logfile = '/root/.acme.sh/acme.sh.log';
566+
} elseif(file_exists('/usr/local/ispconfig/server/scripts/acme.sh') && file_exists('/usr/local/ispconfig/server/scripts/acme.sh.log')) {
567+
$logfile = '/usr/local/ispconfig/server/scripts/acme.sh.log';
568+
} else {
571569
$logfile = '/var/log/letsencrypt/letsencrypt.log';
572570
}
573571
break;

0 commit comments

Comments
 (0)