Files
saura_shakti_website/docker/postgres/init/01-create-test-db.sh
T
Shubhankar45 53dbfa976b -
2026-11-13 12:14:55 +00:00

6 lines
256 B
Bash
Executable File

#!/bin/sh
# Runs once on first container start: creates the database used by the automated tests.
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" \
-c "CREATE DATABASE \"${POSTGRES_DB}_test\" OWNER \"$POSTGRES_USER\";"