Skip to content

Commit

Permalink
Create init-user-db.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq authored Jan 14, 2025
1 parent 1349da4 commit 37fdc06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .deploy/db/init-user-db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$DB_USER" --dbname "$DB_NAME" <<-EOSQL
CREATE DATABASE gauzy;
GRANT ALL PRIVILEGES ON DATABASE gauzy TO postgres;
EOSQL

0 comments on commit 37fdc06

Please sign in to comment.