#!/bin/bash set -e echo "Waiting for PostgreSQL to be ready..." until psql -h "$DB_HOST" -U "$DB_USER" -d "$DB_NAME" -c '\q' 2>/dev/null; do sleep 1 done echo "Creating test table..." psql -h "$DB_HOST" -U "$DB_USER" -d "$DB_NAME" <