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;"