Compare commits
5 Commits
932927e53c
...
38fbfe1f61
Author | SHA1 | Date |
---|---|---|
Benjamin Bohard | 38fbfe1f61 | |
Benjamin Bohard | 81f0635ef2 | |
Benjamin Bohard | c1bac94c00 | |
Benjamin Bohard | c59d1a38fc | |
Benjamin Bohard | dbcfe4bc66 |
|
@ -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
|
|
@ -1,9 +1,14 @@
|
|||
%set %%dbname = %%getVar('risotto_main_dbname')
|
||||
---
|
||||
dbuser: %%getVar('risotto_db_user')
|
||||
dbuser_options:
|
||||
- LOGIN
|
||||
privileges:
|
||||
%%{dbname}.public: 'ALL'
|
||||
dbhost: %%getVar('risotto_db_address')
|
||||
dbport: 5432
|
||||
dbtype: postgres
|
||||
dbname: %%getVar('risotto_main_dbname')
|
||||
dbname: %%dbname
|
||||
template: 'postgres'
|
||||
sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql']
|
||||
pwd_files:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
%set %%dbname = %%getVar('risotto_tiramisu_dbname')
|
||||
---
|
||||
dbuser: %%getVar('risotto_tiramisu_db_user')
|
||||
dbuser_options:
|
||||
- LOGIN
|
||||
privileges:
|
||||
%%{dbname}.public: 'ALL'
|
||||
dbhost: %%getVar('risotto_db_address')
|
||||
dbport: 5432
|
||||
dbtype: postgres
|
||||
|
|
Loading…
Reference in New Issue