Use custom certbot config path

This commit is contained in:
Miraty 2024-01-28 19:21:01 +01:00
parent 2bdff41e80
commit 0496feb8fb
3 changed files with 7 additions and 1 deletions

View File

@ -46,8 +46,10 @@ tor_user = "tor"
tor_reload_cmd = "/usr/bin/systemctl reload tor"
onion_internal_host = "[::1]:9080"
sudo_path = "/usr/bin/sudo"
certbot_path = "/usr/bin/certbot"
certbot_config_path = "/etc/letsencrypt/servnest.cli"
sudo_path = "/usr/bin/sudo"
chgrp_path = "/usr/bin/chgrp"
cat_path = "/usr/bin/cat"
rm_path = "/usr/bin/rm"

View File

@ -138,6 +138,8 @@ function htDeleteSite(string $address, string $type, string $user_id): void {
exescape([
CONF['ht']['sudo_path'],
CONF['ht']['certbot_path'],
'--config',
CONF['ht']['certbot_config_path'],
'delete',
'--quiet',
'--cert-name',

View File

@ -33,6 +33,8 @@ rateLimit();
exescape([
CONF['ht']['sudo_path'],
CONF['ht']['certbot_path'],
'--config',
CONF['ht']['certbot_config_path'],
'certonly',
'--domain',
$_POST['domain'],