Update nodemgmt-scripts.sh

This commit is contained in:
2023-05-21 20:17:34 -05:00
parent cbc7c0d1ed
commit 30fa7af4b4

View File

@@ -1077,6 +1077,8 @@ DOWNLIST(){
host=${ditem%%.*} host=${ditem%%.*}
item=${ditem#*.} item=${ditem#*.}
echo "HERE: $item"
if [[ $ditem == *"."* ]] && [ "${NM_SERVICES[${item}]}" != "" ]; then if [[ $ditem == *"."* ]] && [ "${NM_SERVICES[${item}]}" != "" ]; then
itemname=${NM_SERVICES[${ditem#*-}]} itemname=${NM_SERVICES[${ditem#*-}]}
elif [[ $ditem == *"."* ]] && [ "${NM_DOCKERS[${item}]}" != "" ]; then elif [[ $ditem == *"."* ]] && [ "${NM_DOCKERS[${item}]}" != "" ]; then