Skip to content

Commit

Permalink
Fix Bash syntax error with multiple conditions on ES and Kibana
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose M committed Jul 5, 2019
1 parent 7bf7f53 commit 401560d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elasticsearch/config/load_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else
wazuh_url="${WAZUH_API_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}"
Expand Down
2 changes: 1 addition & 1 deletion kibana/config/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 401560d

Please sign in to comment.