Files
mtusi2026lab7/infra/postgres-tls-entrypoint.sh
2026-11-07 15:00:53 +03:00

7 lines
298 B
Bash

#!/bin/sh
set -eu
# PostgreSQL requires its key to be owned by the postgres user and mode 0600.
install -d -o postgres -g postgres -m 0700 /tmp/postgres-tls
install -o postgres -g postgres -m 0600 /run/secrets/postgres_tls /tmp/postgres-tls/server.pem
exec /usr/local/bin/docker-entrypoint.sh "$@"