Fix Bash syntax error with multiple conditions on ES and Kibana

This commit is contained in:
Jose M
2019-07-05 12:18:37 +02:00
committed by manuasir
parent 3aff6de0d0
commit e00cd1081a

View File

@@ -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}"