From 6cca2b1e18db12067f6a5e18002703d5cf4eace7 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Sat, 8 Apr 2017 18:52:37 -0600 Subject: [PATCH] bug fix: $1 could be `sh` preventing prod from ever being used --- docker-entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 561640c..675d592 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,10 +2,8 @@ set -e #set -x -if [ "${1}" = 'dehydrated' ]; then - if [ "${LE_ENV}" == 'production' ]; then - sed -i 's@CA=.*@CA="https://acme-v01.api.letsencrypt.org/directory"@g' /etc/dehydrated/config - fi +if [ "${LE_ENV}" == 'production' ]; then + sed -i 's@CA=.*@CA="https://acme-v01.api.letsencrypt.org/directory"@g' /etc/dehydrated/config fi echo "${@}"