fix upstream name

This commit is contained in:
Bernhard Radermacher
2026-02-20 10:03:00 +01:00
parent fec29d485b
commit 260423fc3a

View File

@@ -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