From 46fed0810a5fbeac4ad1592a387a02524e675d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 16 Mar 2018 22:19:29 +0100 Subject: [PATCH] use ES_CONNECTION env var to delete old es index --- contrib/packager.io/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 569ed2c2c..9d3bb84ad 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -232,7 +232,7 @@ function setup_elasticsearch () { REBUILD_ES_SEARCHINDEX="yes" echo "# Deleting old zammad_production elasticsearch index..." - curl -XDELETE '127.0.0.1:9200/zammad_production' + curl -XDELETE "${ES_CONNECTION:-http://127.0.0.1:9200}/zammad_production" yes | /usr/share/elasticsearch/bin/elasticsearch-plugin -s remove mapper-attachments