We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3884130 commit 8d9c329Copy full SHA for 8d9c329
docker-entrypoint.sh
@@ -188,7 +188,7 @@ docker_process_sql() {
188
# create initial database
189
# uses environment variables for input: POSTGRES_DB
190
docker_setup_db() {
191
- if [ "$POSTGRES_DB" != 'postgres' ]; then
+ if [ "$POSTGRES_DB" != 'postgres' ] || [ "$POSTGRES_DB" != 'template1' ]; then
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db="$POSTGRES_DB" <<-'EOSQL'
193
CREATE DATABASE :"db" ;
194
EOSQL
0 commit comments