fixer les permissions avant le démarrage de risotto
This commit is contained in:
16
posttemplate/10-fix-postgresql-permissions
Normal file
16
posttemplate/10-fix-postgresql-permissions
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
systemctl stop postgresql.service
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user