fix reindex if
This commit is contained in:
parent
03a4c5d848
commit
efe03468f3
@ -69,7 +69,7 @@ if [ "$1" = 'zammad-init' ]; then
|
||||
sleep 5
|
||||
done
|
||||
|
||||
if [ -n "$(curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices |grep zammad)" ]; then
|
||||
if [ -z "$(curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices |grep zammad)" ]; then
|
||||
echo "rebuilding es searchindex..."
|
||||
bundle exec rake searchindex:rebuild
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user