From 7ae5dba6fe7df643d14e2369533266cc8e911c0c Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sun, 30 May 2021 20:39:40 +0200 Subject: [PATCH] Wrap certbot call in a subshell and set -x --- php/nginx/letsencrypt.runit | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/php/nginx/letsencrypt.runit b/php/nginx/letsencrypt.runit index cf5b156..7538681 100755 --- a/php/nginx/letsencrypt.runit +++ b/php/nginx/letsencrypt.runit @@ -26,14 +26,18 @@ echo -e "To change this, change the value of LETSENCRYPT_MODE" sleep 3; echo "Certbot is running for ${LETSENCRYPT_EMAIL} / ${LETSENCRYPT_DOMAINS}..." -certbot \ - certonly \ - --nginx \ - $LETSENCRYPT_TEST_MODE \ - -n \ - -m $LETSENCRYPT_EMAIL \ - --agree-tos \ - -d $LETSENCRYPT_DOMAINS +( \ + set -x; \ + certbot \ + certonly \ + --nginx \ + $LETSENCRYPT_TEST_MODE \ + -d $LETSENCRYPT_DOMAINS \ + -n \ + -m $LETSENCRYPT_EMAIL \ + --agree-tos \ +) + echo "Certbot complete!" # replace the self-certs with these lovely new certs.