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