Maintenance: Use the renamed zammad:searchindex:* commands of Zammad 5.2.

This commit is contained in:
Martin Gruner 2022-05-31 07:53:08 +02:00
parent f760f80864
commit 0806c1d0a1
No known key found for this signature in database
GPG Key ID: 1F24F3A68E149925

View File

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