fix searchindex rebuild

This commit is contained in:
André Bauer 2019-02-09 19:05:32 +01:00
parent f64bdf16aa
commit e3a5ec3b74

View File

@ -91,8 +91,7 @@ if [ "$1" = 'zammad-init' ]; then
sleep 5 sleep 5
done done
if curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then if ! curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
curl -s ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices
echo "rebuilding es searchindex..." echo "rebuilding es searchindex..."
bundle exec rake searchindex:rebuild bundle exec rake searchindex:rebuild
fi fi