Update bdr.sh

This commit is contained in:
FusionPBX 2017-04-05 11:56:28 -06:00 committed by GitHub
parent a724ff0a6e
commit d33ed5f718
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ cp /etc/postgresql/9.4/main/pg_hba.conf /etc/postgresql/9.4/main/pg_hba.conf-$no
cat ../postgresql/pg_hba.conf > /etc/postgresql/9.4/main/pg_hba.conf
#chmod 640 /etc/postgresql/9.4/main/pg_hba.conf
#chown -R postgres:postgres /etc/postgresql/9.4/main
echo "hostssl all all 127.0.0.1/32 trust" >> /etc/postgresql/9.4/main/pg_hba.conf
echo "hostssl replication postgres 127.0.0.1/32 trust" >> /etc/postgresql/9.4/main/pg_hba.conf
for node in $nodes; do
echo "hostssl all all ${node}/32 trust" >> /etc/postgresql/9.4/main/pg_hba.conf
echo "hostssl replication postgres ${node}/32 trust" >> /etc/postgresql/9.4/main/pg_hba.conf