library/certbot/bin/docker-entrypoint.sh
crusader 1f98fc734c ing
2018-10-27 12:58:37 +09:00

19 lines
326 B
Bash

#!/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 "$@"