Skip to content

Commit

Permalink
enable Elasticsearch and Kibana endpoint URLs to be overridden (neede…
Browse files Browse the repository at this point in the history
  • Loading branch information
spujadas committed Mar 20, 2018
1 parent 149faca commit f0f96cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ else
ES_CONNECT_RETRY=30
fi

ELASTICSEARCH_URL=${ES_PROTOCOL:-http}://localhost:9200
if [ -z "$ELASTICSEARCH_URL" ]; then
ELASTICSEARCH_URL=${ES_PROTOCOL:-http}://localhost:9200
fi

counter=0
while [ ! "$(curl -k ${ELASTICSEARCH_URL} 2> /dev/null)" -a $counter -lt $ES_CONNECT_RETRY ]; do
Expand Down Expand Up @@ -198,7 +200,9 @@ if [ -x /usr/local/bin/elk-post-hooks.sh ]; then
KIBANA_CONNECT_RETRY=30
fi

KIBANA_URL=localhost:5601
if [ -z "$KIBANA_URL" ]; then
KIBANA_URL=http://localhost:5601
fi

counter=0
while [ ! "$(curl ${KIBANA_URL} 2> /dev/null)" -a $counter -lt $KIBANA_CONNECT_RETRY ]; do
Expand Down

0 comments on commit f0f96cc

Please sign in to comment.