Browse Source

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

Stephane de Labrusse 2 years ago
parent
commit
daae241ff9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docker/docker_start.sh

+ 1 - 1
docker/docker_start.sh

@@ -90,7 +90,7 @@ if [ "$GID" != "" ]; then
     fi
     fi
 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.cert_file = \"$CERT_FILE\"" "$CS_CONFIG_FILE"
     yq -i eval ".api.server.tls.key_file = \"$KEY_FILE\"" "$CS_CONFIG_FILE"
     yq -i eval ".api.server.tls.key_file = \"$KEY_FILE\"" "$CS_CONFIG_FILE"
     yq -i eval '... comments=""' "$CS_CONFIG_FILE"
     yq -i eval '... comments=""' "$CS_CONFIG_FILE"