Wrap certbot call in a subshell and set -x
This commit is contained in:
parent
7f14ce63a3
commit
7ae5dba6fe
1 changed files with 12 additions and 8 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue