Browse Source

fix: dev: [apache] fix some disturbing code that should not have had any consequence

framadate
Valentin Lab 5 years ago
parent
commit
06ac2b2e7f
  1. 4
      apache/lib/common

4
apache/lib/common

@ -97,7 +97,7 @@ $(if [ "$custom_rules" ]; then
domain=$(get_domain "$cfg") || return 1
relation-set domain "$domain"
echo "$vhost_statement"| file_put "$APACHE_CONFIG_LOCATION/$prefix$domain.conf" || return 1
echo "$vhost_statement" | file_put "$APACHE_CONFIG_LOCATION/$domain.conf" || return 1
creds=$(e "$cfg" | cfg-get-value creds 2>/dev/null) || true
if [ "$creds" ]; then
@ -206,7 +206,6 @@ ssl_get_plugin_fun() {
type="$(echo "$cfg" | shyaml -y get-type 2>/dev/null)" || return 1
if [[ "$type" == "bool" ]]; then
printf "%s\0" "ssl_fallback" "" "$cfg"
echo ssl_fallback
return 0
fi
@ -248,7 +247,6 @@ ssl_get_plugin_fun() {
fi
## No key of the struct seem to be declared cert-provider, so fallback
printf "%s\0" "ssl_fallback" "" "$cfg"
echo ssl_fallback
}

Loading…
Cancel
Save