ソースを参照

Update bdr.sh

FusionPBX 8 年 前
コミット
765d325149
1 ファイル変更2 行追加0 行削除
  1. 2 0
      debian/resources/postgresql/bdr.sh

+ 2 - 0
debian/resources/postgresql/bdr.sh

@@ -76,9 +76,11 @@ 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
 cat ../postgresql/pg_hba.conf > /etc/postgresql/9.4/main/pg_hba.conf
 #chmod 640 /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
 #chown -R postgres:postgres /etc/postgresql/9.4/main
+echo "host    all             all            127.0.0.1/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
 echo "hostssl all             all            127.0.0.1/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
 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
 echo "hostssl replication     postgres       127.0.0.1/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
 for node in $nodes; do
 for node in $nodes; do
+        echo "host    all             all            ${node}/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
         echo "hostssl all             all            ${node}/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
         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
         echo "hostssl replication     postgres       ${node}/32              trust" >> /etc/postgresql/9.4/main/pg_hba.conf
 done
 done