Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
3bb1d69c6e
commit
a3fcec0043
1 file changed
+1
-1
+1
-1
@@ -1380,7 +1380,7 @@ NODEUPDATE() {
|
|||||||
for nip in "${!var}"; do
|
for nip in "${!var}"; do
|
||||||
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
||||||
nip='localhost '
|
nip='localhost '
|
||||||
NCMD='ssh root@$localhost'
|
NCMD='ssh root@localhost'
|
||||||
else
|
else
|
||||||
NCMD="ssh root@${nip}"
|
NCMD="ssh root@${nip}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user