upgrade pgpool to 3.6.6
[pgpool-online-recovery] / streaming-replication.sh
index 4289fc8..f3ca1e0 100755 (executable)
@@ -158,7 +158,7 @@ StartLocalAndThenRemotePostGreSql () {
     fi
 
        echo -n "[INFO] Wating for replication to start "
-       while [ "`psql -c 'SELECT * from pg_stat_replication' -h 10.200.1.61 -t postgres postgres | wc -l`" -lt 2 ] ; do
+       while [ "`psql -c 'SELECT * from pg_stat_replication' -h $1 -t postgres postgres | wc -l`" -lt 2 ] ; do
                echo -n .
                sleep 1
        done