Container para emitir Certificados Let's Encrypt, com o Dehydrated
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
255 B

8 years ago
#!/bin/bash
set -e
#set -x
echo "run"
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
fi
echo "${@}"
exec "${@}"