Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
iljavaleev committed Jun 21, 2024
1 parent e7025ee commit 4f4b53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_setup/db_entry.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
psql -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = '${POSTGRES_DB}'" | grep -q 1 || psql -U ${POSTGRES_USER} -c "CREATE DATABASE '${POSTGRES_DB}'"
psql -U postgres -d ${POSTGRES_USER} -a -f ./db_setup.sql
psql -U postgres -d ${POSTGRES_USER} -a -f .db_setup.sql/db_setup.sql

0 comments on commit 4f4b53d

Please sign in to comment.