Merge pull request #2404 from kevin-olbrich/patch-1

Fix detection of local elasticsearch service
This commit is contained in:
André Bauer 2018-12-13 14:23:28 +01:00 committed by GitHub
commit 8f999e6100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,7 +248,7 @@ function setup_elasticsearch () {
yes | /usr/share/elasticsearch/bin/elasticsearch-plugin -s install ingest-attachment
if [ "${ES_CONNECTION}" == "http://127.0.0.1:9200" ]; then
if [ "${ES_CONNECTION}" == "http://127.0.0.1:9200" ] || [ "${ES_CONNECTION}" == "http://localhost:9200" ]; then
${INIT_CMD} restart elasticsearch
else
echo -e "\n It seems you're running an external Elasticsearch server on ${ES_CONNECTION}"