fix upstream name
This commit is contained in:
@@ -66,13 +66,13 @@ else
|
||||
echo "use_replication_slots = on" >> /etc/repmgr.conf
|
||||
echo "pg_bindir = '/usr/lib/postgresql/15/bin/'" >> /etc/repmgr.conf
|
||||
|
||||
until /usr/lib/postgresql/15/bin/repmgr -h pg-0 -U repmgr -f /etc/repmgr.conf standby clone --dry-run &> /dev/null
|
||||
until /usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -U repmgr -f /etc/repmgr.conf standby clone --dry-run &> /dev/null
|
||||
do
|
||||
echo "Upstream host not ready. Waiting for 5 minutes..."
|
||||
sleep 300
|
||||
done
|
||||
echo "Upstream host found..."
|
||||
/usr/lib/postgresql/15/bin/repmgr -h pg-0 -U repmgr -f /etc/repmgr.conf standby clone
|
||||
/usr/lib/postgresql/15/bin/repmgr -h $REPMGR_UPSTREAM -U repmgr -f /etc/repmgr.conf standby clone
|
||||
|
||||
server_start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user