]>
Git — Sourcephile - gargantext.git/blob - devops/postgres/create
5 # postgresql://$USER:$PW@localhost/$DB
11 psql
-c "CREATE USER \"${USER}\""
12 psql
-c "ALTER USER \"${USER}\" with PASSWORD '${PW}'"
14 psql
-c "DROP DATABASE IF EXISTS \"${DB}\""
16 psql
"${DB}" < schema.sql
18 psql
-c "ALTER DATABASE \"${DB}\" OWNER to \"${USER}\""