improved letsencrypt script
This commit is contained in:
parent
37cc0743c4
commit
d820562de7
1 changed files with 3 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue