fp/packages/scripts/postgres-create-superstream...

9 lines
239 B
Bash
Raw Normal View History

2025-01-11 13:26:38 +00:00
if [ -z $POSTGRES_PASSWORD ]; then
echo "POSTGRES_PASSWORD was missing in env"
exit 5
fi
kubectl -n futureporn exec postgresql-primary-0 -- env PGPASSWORD=${POSTGRES_PASSWORD} psql -U postgres --command "CREATE DATABASE sprs;"