use ES_CONNECTION env var to delete old es index

This commit is contained in:
André Bauer 2018-03-16 22:19:29 +01:00
parent 15a280b449
commit 46fed0810a

View file

@ -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