Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 11:24:20 -05:00
parent cb1b751654
commit d8458f9e89

View File

@@ -158,7 +158,7 @@ STATUS(){
fi
DIVIDER; echo -e "${idsST[Reset]}"
fi
echo "HERE: ${var}"
echo "HERE: ${!var}"
for nip in "${!var}"; do
echo $nip
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD=''; LH='- localhost'