pgroonga: Remove 'GRANT USAGE' statement again.

dc2726c814 removed these statements, but c8ec3dfcf6 accidentally
brought one back.  Remove it.
This commit is contained in:
Alex Vandiver 2023-06-26 10:17:46 -04:00 committed by Alex Vandiver
parent d6c21c2237
commit f5540303ba
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ set -eux
dbversion=$(crudini --get /etc/zulip/zulip.conf postgresql version) dbversion=$(crudini --get /etc/zulip/zulip.conf postgresql version)
dbname=$(crudini --get /etc/zulip/zulip.conf postgresql database_name 2>/dev/null || echo zulip) dbname=$(crudini --get /etc/zulip/zulip.conf postgresql database_name 2>/dev/null || echo zulip)
dbuser=$(crudini --get /etc/zulip/zulip.conf postgresql database_user 2>/dev/null || echo zulip)
sharedir="${1:-/usr/share/postgresql/$dbversion}" sharedir="${1:-/usr/share/postgresql/$dbversion}"
applied_file="$sharedir/pgroonga_setup.sql.applied" applied_file="$sharedir/pgroonga_setup.sql.applied"
@ -11,7 +10,7 @@ applied_file="$sharedir/pgroonga_setup.sql.applied"
installed_version=$(dpkg-query --show --showformat='${Version}' "postgresql-$dbversion-pgdg-pgroonga") installed_version=$(dpkg-query --show --showformat='${Version}' "postgresql-$dbversion-pgdg-pgroonga")
if [ ! -f "$applied_file" ]; then if [ ! -f "$applied_file" ]; then
sql="CREATE EXTENSION PGROONGA; GRANT USAGE ON SCHEMA pgroonga TO $dbuser" sql="CREATE EXTENSION PGROONGA"
else else
sql="ALTER EXTENSION pgroonga UPDATE" sql="ALTER EXTENSION pgroonga UPDATE"
fi fi