fix witness

This commit is contained in:
Bernhard Radermacher
2026-02-20 11:12:59 +01:00
parent 5824741ef4
commit 258958d09f

View File

@@ -16,10 +16,10 @@ echo "conninfo = 'host=${REPMGR_NODE_NAME} dbname=repmgr user=repmg
echo "location = '${REPMGR_NODE_LOCATION}'" >> /etc/repmgr.conf echo "location = '${REPMGR_NODE_LOCATION}'" >> /etc/repmgr.conf
if [[ -n $REPMGR_UPSTREAM ]] && [[ -z $REPMGR_ROLE ]]; then if [[ -n $REPMGR_UPSTREAM ]] && [[ -z $REPMGR_ROLE ]]; then
REPMGR_ROLE="standby" REPMGR_NODE_ROLE="standby"
fi fi
case "$REPMGR_ROLE" in case "$REPMGR_NODE_ROLE" in
standby ) standby )
docker_temp_server_stop docker_temp_server_stop
rm -rf /var/lib/postgresql/data/* rm -rf /var/lib/postgresql/data/*