library/certbot/bin/docker-entrypoint.sh

19 lines
326 B
Bash
Raw Normal View History

2018-10-27 03:58:37 +00:00
#!/bin/sh
set -e
# Validate required environment variables.
echo "Target domains for Certification are $CERT_DOMAINS."
echo "E-main for Certification are $CERT_EMAIL."
export CERT_OPTIONS
if [ "$CERT_STAGING" == true ]; then
CERT_OPTIONS="--staging"
fi
echo "Cert option is [$CERT_OPTIONS]"
run_certbot.sh
exec "$@"