Merge pull request #2404 from kevin-olbrich/patch-1
Fix detection of local elasticsearch service
This commit is contained in:
commit
8f999e6100
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue