graphql-engine/server/test-manual/postgres-replicas/init-primary.sh

11 lines
214 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
# Allow all users to replicate the database.
# This is very insecure.
auth="$(postgres -C password_encryption)"
echo "host replication all all ${auth}" >> "$PGDATA/pg_hba.conf"