From a03aace233dfc7f227191e0995fc9b69acf40c10 Mon Sep 17 00:00:00 2001 From: itihas Date: Thu, 11 Sep 2025 23:39:10 +0530 Subject: [PATCH] add handling for postgresql-missing-dictionaries in entrypoint Fix for https://github.com/zulip/docker-zulip/issues/371 --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 6f8b9ba037..b0fb950f74 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -133,6 +133,10 @@ puppetConfiguration() { echo "Disabling https in nginx." crudini --set /etc/zulip/zulip.conf application_server http_only true fi + if [ "$POSTGRESQL_MISSING_DICTIONARIES" == "True" ] || [ "$POSTGRESQL_MISSING_DICTIONARIES" == "true" ]; then + echo "Setting zulip not to expect tsearch-extras in its target Postgres." + crudini --set /etc/zulip/zulip.conf postgresql missing_dictionaries true + fi if [ "$QUEUE_WORKERS_MULTIPROCESS" == "True" ] || [ "$QUEUE_WORKERS_MULTIPROCESS" == "true" ]; then echo "Setting queue workers to run in multiprocess mode ..." crudini --set /etc/zulip/zulip.conf application_server queue_workers_multiprocess true