Skip to content

Commit deddaff

Browse files
committed
Updated primary HBA file
1 parent dba781c commit deddaff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/10_primary.sh

+3
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ CONF="${PGDATA}/postgresql.conf"
3434
sed -i -e"s/^#wal_level.*$/wal_level=replica/" ${CONF}
3535
sed -i -e"s/^#max_wal_senders.*$/max_wal_senders=10/" ${CONF}
3636
sed -i -e"s/^#max_replication_slots.*$/max_replication_slots=10/" ${CONF}
37+
38+
# Add a replication user to pg_hba.conf
39+
echo "host replication ${POSTGRES_REPLICATION_USER} all scram-sha-256" >> "${PGDATA}/pg_hba.conf"

0 commit comments

Comments
 (0)