update/refactor

This commit is contained in:
2025-05-25 12:48:57 +03:00
parent 91d3a48177
commit af04718692
10 changed files with 211 additions and 104 deletions

6
ep.sh
View File

@@ -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 -- "$@"