From 92703189b4c9674697983bc5fe4f9692aebcb0eb Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 31 Jan 2024 19:24:13 +0400 Subject: [PATCH] subdomain oc for certbot --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index d08d4b1..9ac9e65 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1334,7 +1334,7 @@ public function setSSL($name) 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/ --logs-dir /logs 2>&1", $out, $code); + exec("certbot certonly --force-renew --preferred-chain 'ISRG Root X1' -n --agree-tos --email mail@{$conf['domain']} -d {$conf['domain']} -d oc.{$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;