Update nodemgmt-scripts.sh
This commit is contained in:
@@ -955,8 +955,16 @@ DOWNLIST(){
|
||||
if [ "${1}" == "report" ]; then
|
||||
echo -e "${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${idsCL[Default]}"
|
||||
else
|
||||
if [ "${choice^^}" == "A" ] || ([[ ${choice} == ?(-)+([0-9]) ]] && [ ${choice} -gt 0 ] 2>/dev/null && [ ${is} -eq ${choice} ]); then
|
||||
[ ! -f ${NM_TMPFOLDER}/${ditem}.disable ] && touch ${NM_TMPFOLDER}/${ditem}.disable || rm -f ${NM_TMPFOLDER}/${ditem}.disable
|
||||
if [[ "${NM_IGNOREHOSTS_IFDOWN}" != *"${host}"* ]]; then
|
||||
if [ "${choice^^}" == "N" ]; then
|
||||
rm -f ${NM_TMPFOLDER}/${ditem}.disable
|
||||
if [ "${choice^^}" == "F" ]; then
|
||||
touch ${NM_TMPFOLDER}/${ditem}.disable
|
||||
elif [[ ${choice} == ?(-)+([0-9]) ]] && [ ${choice} -gt 0 ] 2>/dev/null && [ ${is} -eq ${choice} ]; then
|
||||
[ ! -f ${NM_TMPFOLDER}/${ditem}.disable ] && touch ${NM_TMPFOLDER}/${ditem}.disable || rm -f ${NM_TMPFOLDER}/${ditem}.disable
|
||||
fi
|
||||
else
|
||||
[ -f ${NM_TMPFOLDER}/${ditem}.disable ] && rm -f ${NM_TMPFOLDER}/${ditem}.disable
|
||||
fi
|
||||
|
||||
[ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) "
|
||||
@@ -979,7 +987,7 @@ DOWNLIST(){
|
||||
done
|
||||
|
||||
if [ "${1}" != "report" ]; then
|
||||
echo -en "\n\033[K${idsCL[LightCyan]}Enter # to change notifications [${idsCL[Default]}Change (${idsCL[LightYellow]}A${idsCL[Default]})ll, ${idsCL[Default]}(${idsCL[LightYellow]}E${idsCL[Default]})xit${idsCL[LightCyan]}] : ${idsCL[Default]}"
|
||||
echo -en "\n\033[K${idsCL[LightCyan]}Enter # to change notifications [${idsCL[Default]}Set All O(${idsCL[LightYellow]}N${idsCL[Default]}), All OF(${idsCL[LightYellow]}F${idsCL[Default]}), ${idsCL[Default]}(${idsCL[LightYellow]}E${idsCL[Default]})xit${idsCL[LightCyan]}] : ${idsCL[Default]}"
|
||||
read choice
|
||||
else
|
||||
choice=E
|
||||
|
||||
Reference in New Issue
Block a user