Update nodemgmt-scripts.sh

This commit is contained in:
2019-10-01 23:35:27 -05:00
parent d2b37593a9
commit 3bb1d69c6e

View File

@@ -1380,7 +1380,7 @@ NODEUPDATE() {
for nip in "${!var}"; do
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
nip='localhost '
NCMD=''
NCMD='ssh root@$localhost'
else
NCMD="ssh root@${nip}"
fi