This commit is contained in:
2023-04-26 11:26:29 -05:00
parent 86ac86f9aa
commit be7da0fd7e
2 changed files with 2 additions and 4 deletions

View File

@@ -158,9 +158,7 @@ STATUS(){
fi
DIVIDER; echo -e "${idsST[Reset]}"
fi
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'
else NCMD="ssh root@${nip}"; LH=''
fi