Skip to content

Commit 3fac0ce

Browse files
authored
Merge pull request #2 from kkimurak/develop
15-build: GRANT ALL ON SCHEMA public TO ${DB_USER}
2 parents 634cff8 + 7eb83ff commit 3fac0ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/functions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ create_database() {
342342
if [[ -n ${DB_USER} ]]; then
343343
echo "‣ Granting access to ${DB_USER} user..."
344344
psql -U ${PG_USER} -c "GRANT ALL PRIVILEGES ON DATABASE \"${database}\" to \"${DB_USER}\";" >/dev/null
345+
346+
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
345348
fi
346349
done
347350
;;

0 commit comments

Comments
 (0)