Test Postgres database definition

This commit is contained in:
Boris Milašinović
2026-04-29 16:36:13 +02:00
parent b849c6feb6
commit 8f7c704a90
13 changed files with 2340 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER ${APP_DB_USER} WITH PASSWORD '${APP_DB_PASSWORD}';
GRANT CONNECT ON DATABASE ${POSTGRES_DB} TO ${APP_DB_USER};
EOSQL