Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3.  
  4. psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
  5.  
  6. CREATE DATABASE dev_database;
  7. GRANT ALL PRIVILEGES ON DATABASE dev_database TO postgres;
  8.  
  9. CREATE DATABASE test_database;
  10. GRANT ALL PRIVILEGES ON DATABASE test_database TO postgres;
  11. EOSQL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement