diff --git a/postservice/01-fix-postgresql-permissions.sh b/postservice/01-fix-postgresql-permissions.sh new file mode 100644 index 0000000..cb50996 --- /dev/null +++ b/postservice/01-fix-postgresql-permissions.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +psql -Upostgres -c "grant all on all tables in schema public to risotto" risotto +psql -Upostgres -c "grant all on all sequences in schema public to risotto" risotto +psql -Upostgres -c "grant all on all functions in schema public to risotto" risotto +psql -Upostgres -c "grant all on all tables in schema public to tiramisu" tiramisu +psql -Upostgres -c "grant all on all sequences in schema public to tiramisu" tiramisu +psql -Upostgres -c "grant all on all functions in schema public to tiramisu" tiramisu + +exit 0