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
|
||||
|
||||
if [[ -n $REPMGR_UPSTREAM ]] && [[ -z $REPMGR_ROLE ]]; then
|
||||
REPMGR_ROLE="standby"
|
||||
REPMGR_NODE_ROLE="standby"
|
||||
fi
|
||||
|
||||
case "$REPMGR_ROLE" in
|
||||
case "$REPMGR_NODE_ROLE" in
|
||||
standby )
|
||||
docker_temp_server_stop
|
||||
rm -rf /var/lib/postgresql/data/*
|
||||
|
||||
Reference in New Issue
Block a user