#!/usr/bin/env bash echo "include_if_exists = '/config/primary.conf'" >> /var/lib/postgresql/data/postgresql.conf echo "host replication ${REPLICATOR_USER:-all} all md5" >> /var/lib/postgresql/data/pg_hba.conf