fix repmgr role

This commit is contained in:
Bernhard Radermacher
2026-02-20 11:33:11 +01:00
parent af89324d83
commit 043d857b0e

View File

@@ -15,7 +15,7 @@ echo "node_name = ${REPMGR_NODE_NAME}"
echo "conninfo = 'host=${REPMGR_NODE_NAME} dbname=repmgr user=repmgr connect_timeout=2'" >> /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_NODE_ROLE ]]; then
REPMGR_NODE_ROLE="standby"
fi