fix elasticsearch setting on update

This commit is contained in:
André Bauer 2018-07-31 08:29:04 +02:00
parent fbf6133dfd
commit 0dec2e5045

View file

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