Wrap certbot call in a subshell and set -x

This commit is contained in:
Greyscale 2021-05-30 20:39:40 +02:00
parent 7f14ce63a3
commit 7ae5dba6fe

View file

@ -26,14 +26,18 @@ echo -e "To change this, change the value of LETSENCRYPT_MODE"
sleep 3; sleep 3;
echo "Certbot is running for ${LETSENCRYPT_EMAIL} / ${LETSENCRYPT_DOMAINS}..." echo "Certbot is running for ${LETSENCRYPT_EMAIL} / ${LETSENCRYPT_DOMAINS}..."
( \
set -x; \
certbot \ certbot \
certonly \ certonly \
--nginx \ --nginx \
$LETSENCRYPT_TEST_MODE \ $LETSENCRYPT_TEST_MODE \
-d $LETSENCRYPT_DOMAINS \
-n \ -n \
-m $LETSENCRYPT_EMAIL \ -m $LETSENCRYPT_EMAIL \
--agree-tos \ --agree-tos \
-d $LETSENCRYPT_DOMAINS )
echo "Certbot complete!" echo "Certbot complete!"
# replace the self-certs with these lovely new certs. # replace the self-certs with these lovely new certs.