From e00cd1081a82e5cd190415925be217745e4b29cb Mon Sep 17 00:00:00 2001 From: Jose M Date: Fri, 5 Jul 2019 12:18:37 +0200 Subject: [PATCH] Fix Bash syntax error with multiple conditions on ES and Kibana --- kibana/config/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibana/config/entrypoint.sh b/kibana/config/entrypoint.sh index 80cf73cd..87bbef39 100644 --- a/kibana/config/entrypoint.sh +++ b/kibana/config/entrypoint.sh @@ -13,7 +13,7 @@ else el_url="${ELASTICSEARCH_URL}" fi -if [ ${ENABLED_XPACK} != "true" || "x${ELASTICSEARCH_USERNAME}" = "x" || "x${ELASTICSEARCH_PASSWORD}" = "x" ]; then +if [[ ${ENABLED_XPACK} != "true" || "x${ELASTICSEARCH_USERNAME}" = "x" || "x${ELASTICSEARCH_PASSWORD}" = "x" ]]; then auth="" else auth="--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}"