Skip to content

Commit

Permalink
subdomain oc for certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
mercurykd committed Jan 31, 2024
1 parent a41debb commit 9270318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9270318

Please sign in to comment.