mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-11 11:17:48 +08:00
start: use gosu to launch the daemon
This commit is contained in:
@@ -136,5 +136,5 @@ if [ -n "${DB_NAME}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting PostgreSQL server..."
|
echo "Starting PostgreSQL server..."
|
||||||
exec sudo -u postgres -H ${PG_BINDIR}/postgres \
|
exec gosu postgres ${PG_BINDIR}/postgres \
|
||||||
-D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf
|
-D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user