We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba781c commit deddaffCopy full SHA for deddaff
scripts/10_primary.sh
@@ -34,3 +34,6 @@ CONF="${PGDATA}/postgresql.conf"
34
sed -i -e"s/^#wal_level.*$/wal_level=replica/" ${CONF}
35
sed -i -e"s/^#max_wal_senders.*$/max_wal_senders=10/" ${CONF}
36
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