From 0dec2e50456dd0b46ad47d02001c25994964afa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 31 Jul 2018 08:29:04 +0200 Subject: [PATCH] fix elasticsearch setting on update --- contrib/packager.io/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 5e68d8246..56ac2bfb2 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -228,6 +228,8 @@ function create_webserver_config () { function setup_elasticsearch () { echo "# Configuring Elasticsearch..." + ES_CONNECTION="$(zammad run rails r "puts Setting.get('es_url')" 2>> /dev/null)" + if [ -n "$(/usr/share/elasticsearch/bin/elasticsearch-plugin list | grep mapper-attachments)" ]; then REBUILD_ES_SEARCHINDEX="yes"