Browse Source

bug fix: $1 could be `sh` preventing prod from ever being used

dehydrated-hook-powerdns
will Farrell 8 years ago
parent
commit
6cca2b1e18
  1. 2
      docker-entrypoint.sh

2
docker-entrypoint.sh

@ -2,11 +2,9 @@
set -e set -e
#set -x #set -x
if [ "${1}" = 'dehydrated' ]; then
if [ "${LE_ENV}" == 'production' ]; then if [ "${LE_ENV}" == 'production' ]; then
sed -i 's@CA=.*@CA="https://acme-v01.api.letsencrypt.org/directory"@g' /etc/dehydrated/config sed -i 's@CA=.*@CA="https://acme-v01.api.letsencrypt.org/directory"@g' /etc/dehydrated/config
fi fi
fi
echo "${@}" echo "${@}"
exec "${@}" exec "${@}"

Loading…
Cancel
Save