mirror of https://github.com/zulip/zulip.git
pgroonga: Remove 'GRANT USAGE' statement again.
dc2726c814
removed these statements, butc8ec3dfcf6
accidentally brought one back. Remove it.
This commit is contained in:
parent
d6c21c2237
commit
f5540303ba
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue