Files
mtusi2026lab7/pg-start.sh

7 lines
238 B
Bash
Executable File

#!/bin/sh
set -eu
cp /certs/db.key /tmp/pg.key
chown postgres:postgres /tmp/pg.key
chmod 600 /tmp/pg.key
exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/certs/db.crt -c ssl_key_file=/tmp/pg.key -c hba_file=/etc/pg_hba.conf