Skip to content

Commit 76647e8

Browse files
committed
report error if no Let's Encrypt client
1 parent 12fe2f6 commit 76647e8

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
@@ -317,10 +317,14 @@ public function request_certificates($data, $server_type = 'apache') {
317317
if($this->get_acme_script()) {
318318
$use_acme = true;
319319
} elseif(!$this->get_certbot_script()) {
320+
$app->log("Unable to find Let's Encrypt client, installing acme.sh.", LOGLEVEL_DEBUG);
320321
// acme and le missing
321322
$this->install_acme();
322323
if($this->get_acme_script()) {
323324
$use_acme = true;
325+
} else {
326+
$app->log("Unable to install acme.sh. Cannot proceed, no Let's Encrypt client found.", LOGLEVEL_WARN);
327+
return false;
324328
}
325329
}
326330

0 commit comments

Comments
 (0)