diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index f78a370..8e537b8 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -66,7 +66,7 @@ if [ "$DISABLE_PGSQL" != "YES" ] && [ ! -f /run/postgresql/.init ]; then SQL=$(mktemp) mkdir -p /run/postgresql /usr/local/pgsql/data - chown postgres:postgres -R /run/postgresql /usr/local/pgsql/data $SQL + chown postgres:postgres -R /run/postgresql /usr/local/pgsql/data su postgres -c "initdb -D /usr/local/pgsql/data" PGSQL_DATABASE=${PGSQL_DATABASE:-test}