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;
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue