From 260423fc3a296428803c06f2751cc349206f06bf Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Fri, 20 Feb 2026 10:03:00 +0100 Subject: [PATCH] fix upstream name --- docker-entrypoint-initdb.d/00-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint-initdb.d/00-main.sh b/docker-entrypoint-initdb.d/00-main.sh index 3a439e8..852352b 100755 --- a/docker-entrypoint-initdb.d/00-main.sh +++ b/docker-entrypoint-initdb.d/00-main.sh @@ -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