update/refactor
This commit is contained in:
6
ep.sh
6
ep.sh
@@ -47,11 +47,11 @@ chown -h postgres:postgres "${PGDATA}"
|
||||
set -e
|
||||
|
||||
if [ "$c" = postgres ] ; then
|
||||
exec dumb-init docker-entrypoint.sh "$@"
|
||||
exec catatonit -- docker-entrypoint.sh "$@"
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" != 0 ] ; then
|
||||
exec dumb-init "$@"
|
||||
exec catatonit -- "$@"
|
||||
fi
|
||||
|
||||
exec dumb-run-as.sh postgres dumb-init "$@"
|
||||
exec dumb-run-as.sh postgres catatonit -- "$@"
|
||||
|
Reference in New Issue
Block a user