Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
pgroonga: Do not attempt to configure pgroonga without a database.
Alex Vandiver2057057be482
diff --git a/scripts/setup/pgroonga-config b/scripts/setup/pgroonga-configindex f2f9dd41129..ee2c71b7891 100755--- a/scripts/setup/pgroonga-config+++ b/scripts/setup/pgroonga-config@@ -4,6 +4,11 @@ set -euxdbversion=$(crudini --get /etc/zulip/zulip.conf postgresql version)dbname=$(crudini --get /etc/zulip/zulip.conf postgresql database_name 2>/dev/null || echo zulip)+if ! su postgres -c "psql -At -c 'SELECT datname FROM pg_database WHERE NOT datistemplate'" | grep -Fx "$dbname"; then+ echo "No database to install into!"+ exit 0+fi+sharedir="${1:-/usr/share/postgresql/$dbversion}"applied_file="$sharedir/pgroonga_setup.sql.applied"