Skip to content

Commit

Permalink
docker: Use POSTGRES_DB instead of POSTGRES_DATABASE
Browse files Browse the repository at this point in the history
I'm not sure if POSTGRES_DATABASE ever worked as described.

See WeblateOrg/docker-compose#230
  • Loading branch information
nijel committed Mar 11, 2024
1 parent abc9371 commit 58ed96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ esac

if [ $VERSION_CHECK -eq 1 ] ; then
# Fetch server version
PGVERSION=$(psql -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -d "$POSTGRES_DATABASE" -U "$POSTGRES_USER" -t -A -c 'SHOW server_version_num;')
PGVERSION=$(psql -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -d "${POSTGRES_DB:-$POSTGRES_DATABASE}" -U "$POSTGRES_USER" -t -A -c 'SHOW server_version_num;')

unset PGPASSWORD

Expand Down

0 comments on commit 58ed96a

Please sign in to comment.