From 03e2cf0129a63e9b59a05107782b0c416b5821db Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 23 May 2023 21:27:40 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8c95e546..27cc18c9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1074,14 +1074,14 @@ DOWNLIST(){ for downitem in ${DOWN_LIST}; do ditem=${downitem##*/} ditem=${ditem//.down} - host=${ditem%%.*} - item=${ditem#*.} + host=${ditem%%~*} + item=${ditem#*~} - if [[ $ditem == *"."* ]] && [ "${NM_SERVICES[${item}]}" != "" ]; then + if [[ $ditem == *"~"* ]] && [ "${NM_SERVICES[${item}]}" != "" ]; then itemname=${NM_SERVICES[${item}]} - elif [[ $ditem == *"."* ]] && [ "${NM_DOCKERS[${item}]}" != "" ]; then + elif [[ $ditem == *"~"* ]] && [ "${NM_DOCKERS[${item}]}" != "" ]; then itemname="${NM_DOCKERS[${item}]} (docker)" - elif [[ $ditem == *"."* ]] && [ "${REPL_DESC[${item}]}" != "" ]; then + elif [[ $ditem == *"~"* ]] && [ "${REPL_DESC[${item}]}" != "" ]; then itemname="${REPL_DESC[${item}]} (replication)" else itemname='HOST DOWN';