fix witness
This commit is contained in:
@@ -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/*
|
||||||
|
|||||||
Reference in New Issue
Block a user