Update nodemgmt-scripts.sh
This commit is contained in:
@@ -98,16 +98,12 @@ case "$1" in
|
|||||||
nid=1
|
nid=1
|
||||||
for nip in "${NODE_HOSTS[@]}"
|
for nip in "${NODE_HOSTS[@]}"
|
||||||
do
|
do
|
||||||
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD=''
|
||||||
nip='localhost'
|
else NCMD="ssh root@${nip}"
|
||||||
NCMD=''
|
|
||||||
else
|
|
||||||
NCMD="ssh root@${nip}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
||||||
echo -e "Node: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsCL[Default]}${idsST[Reset]}"
|
echo -e "Node: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]} - localhost${idsCL[Default]}"
|
||||||
#echo -e "Node: ${nip}"
|
|
||||||
|
|
||||||
for srvc in "${NODE_SERVICES[@]}"
|
for srvc in "${NODE_SERVICES[@]}"
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user