web: use certbot-auto

This commit is contained in:
Saúl Ibarra Corretgé
2020-04-15 21:37:18 +02:00
parent b95c95de0e
commit b039b29b7a
3 changed files with 10 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
s6-svc -d /var/run/s6/services/nginx
# renew cert
certbot -n renew >> /config/le-renew.log
certbot-auto --no-self-upgrade -n renew >> /config/le-renew.log
# start nginx
s6-svc -u /var/run/s6/services/nginx

View File

@@ -11,7 +11,9 @@ mkdir -p \
if [[ $DISABLE_HTTPS -ne 1 ]]; then
if [[ $ENABLE_LETSENCRYPT -eq 1 ]]; then
if [[ ! -f /etc/letsencrypt/live/$LETSENCRYPT_DOMAIN/fullchain.pem ]]; then
if ! certbot certonly \
if ! certbot-auto \
certonly \
--no-self-upgrade \
--noninteractive \
--standalone \
--preferred-challenges http \