granting privilage to public schema
This commit is contained in:
parent
27354506a7
commit
a0484af0ab
1 changed files with 4 additions and 0 deletions
|
@ -6,4 +6,8 @@ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||||
ALTER USER "ciso-assistantuser" WITH PASSWORD '<%= @postgres_user_password %>';
|
ALTER USER "ciso-assistantuser" WITH PASSWORD '<%= @postgres_user_password %>';
|
||||||
CREATE DATABASE "ciso-assistant";
|
CREATE DATABASE "ciso-assistant";
|
||||||
GRANT ALL PRIVILEGES ON DATABASE "ciso-assistant" TO "ciso-assistantuser";
|
GRANT ALL PRIVILEGES ON DATABASE "ciso-assistant" TO "ciso-assistantuser";
|
||||||
|
EOSQL
|
||||||
|
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "ciso-assistant" <<-EOSQL
|
||||||
|
GRANT ALL ON SCHEMA public TO "ciso-assistantuser";
|
||||||
EOSQL
|
EOSQL
|
Loading…
Add table
Reference in a new issue