fix reindex if

This commit is contained in:
André Bauer 2018-04-14 15:48:17 +02:00 committed by GitHub
parent 03a4c5d848
commit efe03468f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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