From a69d0f7386c9f9103fc8032f80c0875f76c1e640 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 7 Aug 2020 17:09:22 +0200 Subject: [PATCH] =?UTF-8?q?fixer=20les=20permissions=20avant=20le=20d?= =?UTF-8?q?=C3=A9marrage=20de=20risotto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../10-fix-postgresql-permissions | 4 ++++ 1 file changed, 4 insertions(+) rename postservice/01-fix-postgresql-permissions => posttemplate/10-fix-postgresql-permissions (88%) diff --git a/postservice/01-fix-postgresql-permissions b/posttemplate/10-fix-postgresql-permissions similarity index 88% rename from postservice/01-fix-postgresql-permissions rename to posttemplate/10-fix-postgresql-permissions index cb50996..9d57b25 100644 --- a/postservice/01-fix-postgresql-permissions +++ b/posttemplate/10-fix-postgresql-permissions @@ -2,6 +2,8 @@ set -e +systemctl start postgresql.service + 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 @@ -9,4 +11,6 @@ psql -Upostgres -c "grant all on all tables in schema public to tiramisu" tirami 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 +systemctl stop postgresql.service + exit 0