fix elasticsearch setting on update
This commit is contained in:
parent
fbf6133dfd
commit
0dec2e5045
|
@ -228,6 +228,8 @@ function create_webserver_config () {
|
||||||
function setup_elasticsearch () {
|
function setup_elasticsearch () {
|
||||||
echo "# Configuring 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
|
if [ -n "$(/usr/share/elasticsearch/bin/elasticsearch-plugin list | grep mapper-attachments)" ]; then
|
||||||
REBUILD_ES_SEARCHINDEX="yes"
|
REBUILD_ES_SEARCHINDEX="yes"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue