mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
pgroonga: Remove 'GRANT USAGE' statement again.
dc2726c814
removed these statements, butc8ec3dfcf6
accidentally brought one back. Remove it. (cherry picked from commitf5540303ba
)
This commit is contained in:
@@ -3,7 +3,6 @@ set -eux
|
||||
|
||||
dbversion=$(crudini --get /etc/zulip/zulip.conf postgresql version)
|
||||
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}"
|
||||
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")
|
||||
|
||||
if [ ! -f "$applied_file" ]; then
|
||||
sql="CREATE EXTENSION PGROONGA; GRANT USAGE ON SCHEMA pgroonga TO $dbuser"
|
||||
sql="CREATE EXTENSION PGROONGA"
|
||||
else
|
||||
sql="ALTER EXTENSION pgroonga UPDATE"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user