From dbcfe4bc66749752f431c489728a5f941fe41b0a Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Mon, 6 Apr 2020 16:52:11 +0200 Subject: [PATCH] Workaround postgresql insufficient permissions --- postservice/01-fix-postgresql-permissions.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 postservice/01-fix-postgresql-permissions.sh 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