diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 92fdcd786..fdd391aa9 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -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}"