Skip to content

Commit

Permalink
updated template docker-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rothgar committed Feb 13, 2015
1 parent 167c2ae commit c863eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c863eb3

Please sign in to comment.