Skip to content

Commit 22b3b1d

Browse files
authored
Merge pull request #5 from kkimurak/grant-all-on-schema-public-to-db-user
fix: specify database to GRANT ALL ON SCHEMA public TO ${DB_USER}
2 parents 7eb83ff + c9124dd commit 22b3b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ create_database() {
344344
psql -U ${PG_USER} -c "GRANT ALL PRIVILEGES ON DATABASE \"${database}\" to \"${DB_USER}\";" >/dev/null
345345

346346
echo "‣ Granting access on public schema to user '${DB_USER}'"
347-
psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" >/dev/null
347+
psql -U ${PG_USER} -c "GRANT ALL ON SCHEMA public TO \"${DB_USER}\";" -d "${database}" >/dev/null
348348
fi
349349
done
350350
;;

0 commit comments

Comments
 (0)