2020-04-06 16:52:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-08-07 17:09:22 +02:00
|
|
|
systemctl start postgresql.service
|
|
|
|
|
2020-04-06 16:52:11 +02:00
|
|
|
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
|
|
|
|
|
2020-08-07 17:09:22 +02:00
|
|
|
systemctl stop postgresql.service
|
|
|
|
|
2020-04-06 16:52:11 +02:00
|
|
|
exit 0
|