From 1894aabbfc47966a9445b9ff59225e79e3f97c2d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Jan 2019 20:03:33 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 39fa3210..7fadf9e1 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -98,12 +98,12 @@ case "$1" in nid=1 for nip in "${NODE_HOSTS[@]}" do - if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' - else NCMD="ssh root@${nip}" + if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD=''; LH='- localhost' + else NCMD="ssh root@${nip}"; LH='' fi echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}" - echo -e "Node: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]} - localhost${idsCL[Default]}" + echo -e "Node: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} ${LH}${idsCL[Default]}" for srvc in "${NODE_SERVICES[@]}" do