From c863eb347143c15223d58d619c316f8ec3cb8556 Mon Sep 17 00:00:00 2001 From: Justin Garrison Date: Fri, 13 Feb 2015 09:54:07 -0800 Subject: [PATCH] updated template docker-entrypoint --- docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 28f8354f70..74a4e356fc 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -29,7 +29,8 @@ if [ "$1" = 'postgres' ]; then fi : ${POSTGRES_USER:=postgres} - if [ "$POSTGRES_USER" = 'postgres' ]; then + : ${POSTGRES_DB:=$POSTGRES_USER} + if [ "$POSTGRES_DB" = 'postgres' ]; then op='ALTER' else op='CREATE'