Browse Source

fix: [www] using server-aliases with letsencrypt would trigger an error about "empty label".

Asking ``-y`` to shyaml would include rogue ``...`` in the output.
framadate
Valentin Lab 6 years ago
parent
commit
fb75d3cf42
  1. 2
      apache/lib/common

2
apache/lib/common

@ -217,7 +217,7 @@ ssl_plugin_cert-provider_prepare() {
options=$(yaml_key_val_str "options" "$cfg") || return 1
service_config=$(yaml_key_val_str "$service" "$options")
compose --debug --add-compose-content "$service_config" run --rm --service-ports "$service" \
crt create "$DOMAIN" $(echo "$SERVER_ALIAS" | shyaml -y get-values 2>/dev/null) || {
crt create "$DOMAIN" $(echo "$SERVER_ALIAS" | shyaml get-values 2>/dev/null) || {
err "Failed to launch letsencrypt for certificate creation."
return 1
}

Loading…
Cancel
Save