Browse Source

new: [letsencrypt] do not require admin email anymore.

framadate
Valentin Lab 6 years ago
parent
commit
2f8890ee03
  1. 10
      letsencrypt/hooks/dc-pre-run

10
letsencrypt/hooks/dc-pre-run

@ -17,15 +17,13 @@ set -e
service_def=$(get_compose_service_def "$SERVICE_NAME")
USER_EMAIL=$(echo "$service_def" | shyaml get-value options.email 2>/dev/null) || {
err "No ${WHITE}email${NORMAL} value in ${DARKYELLOW}$SERVICE_NAME${NORMAL} compose's ${WHITE}options${NORMAL}."
exit 1
}
config="
$SERVICE_NAME:
environment:
LETSENCRYPT_USER_MAIL: $USER_EMAIL"
"
if USER_EMAIL=$(echo "$service_def" | shyaml get-value options.email 2>/dev/null); then
config+=" LETSENCRYPT_USER_MAIL: $USER_EMAIL"
fi
if environment_def="$(printf "%s" "$service_def" | shyaml -y get-value options.env 2>/dev/null)"; then
while read-0 key value; do

Loading…
Cancel
Save