From 624ef048f227a78de7a5f8c73c6b1701953e91ff Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 26 Apr 2023 11:25:43 +0400 Subject: [PATCH] certbot logs dir --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 3211390..1895a82 100644 --- a/app/bot.php +++ b/app/bot.php @@ -743,7 +743,7 @@ class Bot case 'letsencrypt': $out[] = 'Install certificate:'; $this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out)); - exec("certbot certonly --force-renew --preferred-chain 'ISRG Root X1' -n --agree-tos --email mail@{$conf['domain']} -d {$conf['domain']} --webroot -w /certs/ 2>&1", $out, $code); + exec("certbot certonly --force-renew --preferred-chain 'ISRG Root X1' -n --agree-tos --email mail@{$conf['domain']} -d {$conf['domain']} --webroot -w /certs/ --logs-dir /logs 2>&1", $out, $code); if ($code > 0) { $this->send($this->input['chat'], "ERROR\n" . implode("\n", $out)); break;