From f267c8204b441589902b4cf736bb37ecb8a0e34a Mon Sep 17 00:00:00 2001 From: will Farrell Date: Sat, 24 Feb 2018 17:40:10 -0700 Subject: [PATCH] fix multi domain logic --- docker-entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a2d2b3c..d2bb5ab 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -14,14 +14,17 @@ if [ "${LOG}" == "TRUE" ]; then fi if [ "${LE_ENV}" == 'production' ]; then - echo "***** ${LE_ENV} *****" + echo "***** production *****" sed -i 's@CA=.*@CA="https://acme-v01.api.letsencrypt.org/directory"@g' /etc/dehydrated/config else echo "***** staging *****" fi # comma = new line -if [ "${LE_DOMAIN}" ]; then +if [ -z ${LE_DOMAIN+x} ]; then + echo "***** Skipping domains.txt *****" + echo "Ensure --domain arg is set" +else echo "***** Creating domains.txt *****" echo ${LE_DOMAIN} | sed -e $'s/,/\\\n/g' > /etc/dehydrated/domains.txt cat /etc/dehydrated/domains.txt