1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Move Dockerfile and docker-entrypoint.sh into 9.3 folder to make way for multiple simultaneous supported versions

This commit is contained in:
Tianon Gravi
2014-07-15 17:05:42 -06:00
parent e2971da001
commit fa36941d68
2 changed files with 0 additions and 0 deletions

View File

@ -1,18 +0,0 @@
#!/bin/bash
set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf
{ echo; echo 'host all all 0.0.0.0/0 trust'; } >> "$PGDATA"/pg_hba.conf
fi
exec gosu postgres "$@"
fi
exec "$@"