diff --git a/docker-entrypoint-initdb.d/00-main.sh b/docker-entrypoint-initdb.d/00-main.sh index fef8363..5791a46 100755 --- a/docker-entrypoint-initdb.d/00-main.sh +++ b/docker-entrypoint-initdb.d/00-main.sh @@ -57,6 +57,8 @@ else echo "conninfo ='host=pg-1 dbname=repmgr user=repmgr connect_timeout=2'" >> /etc/repmgr.conf echo "data_directory = '/var/lib/postgresql/data'" >> /etc/repmgr.conf + /usr/lib/postgresql/15/bin/repmgr -h pg-0 -U repmgr -f /etc/repmgr.conf standby clone + # OLD_PGPASSWORD=$PGPASSWORD # export PGPASSWORD=$REPLICATOR_PASSWORD # pg_basebackup -h "${UPSTREAM}" -U repmgr -D "${PGDATA}" -Fp -Xs -P -R