Skip to content

Commit 0c8811b

Browse files
committed
dspace5 user as subgroup of dspace
1 parent 5da7f58 commit 0c8811b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ jobs:
9696
psql -p 10563 -U dspace -d postgres -c \"SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'dspace' AND pid <> pg_backend_pid();\" &&
9797
dropdb -U dspace -p 10563 dspace &&
9898
createdb -U dspace -p 10563 --owner=dspace --encoding=UNICODE dspace &&
99+
psql -p 10563 -U dspace -d postgres -c \"CREATE ROLE IF NOT EXISTS postgres SUPERUSER;\" &&
100+
psql -p 10563 -U dspace -d postgres -c \"CREATE ROLE IF NOT EXISTS dspace5 IN ROLE dspace;\" &&
99101
psql -p 10563 -U dspace -d dspace -f /tmp/$FNAME &&
100102
psql -p 10563 -U dspace -d dspace -c 'CREATE EXTENSION IF NOT EXISTS pgcrypto;' &&
101103
rm /tmp/$FNAME

0 commit comments

Comments
 (0)