fixed check email in LetsEncrypt mode

pull/473/head
OscarSotoSanchez 2020-05-08 14:15:13 +02:00
parent 002753443e
commit 2794372f16
1 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,13 @@ if [ -z "${CERTIFICATE_TYPE}" ]; then
fi
if [[ "${CERTIFICATE_TYPE}" == "letsencrypt" && \
"${LETSENCRYPT_EMAIL}" == "user@example.com" || \
"${LETSENCRYPT_EMAIL}" == "user@example.com" ]]; then
printf "\n =======¡ERROR!======="
printf "\n If your use LetsEncrypt mode it's necessary a correct email in 'LETSENCRYPT_EMAIL' variable\n"
exit 0
fi
if [[ "${CERTIFICATE_TYPE}" == "letsencrypt" && \
-z "${LETSENCRYPT_EMAIL}" ]]; then
printf "\n =======¡ERROR!======="
printf "\n If your use LetsEncrypt mode it's necessary a correct email in 'LETSENCRYPT_EMAIL' variable\n"