Update nodemgmt-scripts.sh

This commit is contained in:
2024-05-09 10:15:45 -05:00
parent 7fef8b20cf
commit 94af7bc9e0

View File

@@ -918,11 +918,7 @@ DOWNLIST(){
fi
[ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) "
if [ -f ${NM_TMPFOLDER}/${ditem}.disable ] || ([[ "${host}" = *"10.2."* ]] && [ -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ]); then
dstatus="OFF"
else
dstatus="${idsCL[Green]}ON"
fi
([ -f ${NM_TMPFOLDER}/${ditem}.disable ] || ([[ "${host}" = *"10.2."* ]] && [ -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ])) && dstatus="OFF" || dstatus="${idsCL[Green]}ON"
c=0; spc3=''; until [ $c = `expr 26 - ${#time}` ]; do spc3="${spc3} "; ((c++)); done
echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}"
fi