#!/bin/bash chmod 0400 /cert.pem chown postgres:postgres /cert.pem chmod 0400 /key.pem chown postgres:postgres /key.pem chown -R postgres:postgres /var/lib/postgresql/data/ chmod -R 0700 /var/lib/postgresql/data/ exec "$@"