9 lines
241 B
Bash
9 lines
241 B
Bash
|
|
||
|
|
||
|
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 bright;"
|