fix #1794 (TLS is forced even when -e USE_TLS="false")

This commit is contained in:
Stephane de Labrusse 2022-10-07 16:31:03 +02:00 committed by GitHub
parent a50a3362bd
commit daae241ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ if [ "$GID" != "" ]; then
fi
fi
if [ "$USE_TLS" != "" ]; then
if [ "${USE_TLS,,}" == "true" ]; then
yq -i eval ".api.server.tls.cert_file = \"$CERT_FILE\"" "$CS_CONFIG_FILE"
yq -i eval ".api.server.tls.key_file = \"$KEY_FILE\"" "$CS_CONFIG_FILE"
yq -i eval '... comments=""' "$CS_CONFIG_FILE"