Commit f4b466ca authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

pg_authid exists only in postgres database, let's make sure we actually work...

pg_authid exists only in postgres database, let's make sure we actually work on that when granting SELECT on it ;)
parent 36f771f1
......@@ -310,7 +310,7 @@ function create_readonly_postgres_user() {
# make sure the role exists and has the basic required privileges (and lacks the unneeded ones)
PGPASSWORD="$PG_PASS" psql -h "$PG_HOST" -U "$PG_USER" -c "
CREATE ROLE $RUSER_NAME NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN NOREPLICATION PASSWORD '$RUSER_PW';
GRANT SELECT ON pg_authid TO $RUSER_NAME;" \
GRANT SELECT ON pg_authid TO $RUSER_NAME;" postgres \
|| display_error_and_quit "Error creating the $RUSER_NAME role and granting SELECT on pg_authid."
# get the list of roles
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment