improved letsencrypt script

This commit is contained in:
Greyscale 2021-05-30 23:04:42 +02:00
parent 37cc0743c4
commit d820562de7

View file

@ -15,10 +15,10 @@ fi
if [ "${LETSENCRYPT_MODE,,}" = "production" ]; then
echo -e "LetsEncrypt is running against the \e[32mPRODUCTION\e[0m servers."
LETSENCRYPT_MODE=
LETSENCRYPT_MODE=""
else
echo -e "LetsEncrypt is running against the \e[31mSTAGING\e[0m servers."
LETSENCRYPT_MODE=--test-cert
LETSENCRYPT_MODE="--test-cert"
fi
echo -e "To change this, change the value of LETSENCRYPT_MODE"
@ -31,7 +31,7 @@ echo -e "Certbot is running for \e[33m${LETSENCRYPT_EMAIL}\e[0m / \e[33m${LETSEN
certbot \
certonly \
--nginx \
$LETSENCRYPT_TEST_MODE \
$LETSENCRYPT_MODE \
-d $LETSENCRYPT_DOMAINS \
-n \
-m $LETSENCRYPT_EMAIL \