Update nodemgmt-scripts.sh

This commit is contained in:
2024-12-06 21:06:04 -06:00
parent fd648c53b8
commit ff566133bd

View File

@@ -780,7 +780,7 @@ RUN_COMMAND(){
done
if [ "${nodetype}" == "ALL" ] || [ -z ${nodetype+x} ]; then
nodetype=ALL
# NT_HOSTS=ALL_HOSTS[@]
NT_HOSTS=ALL_HOSTS[@]
NTS=(${NM_NODE_TYPES[*]})
elif [ "${nodetype}" != "" ]; then
if [ "${NM_HOSTS[${nodetype}]}" != "" ]; then
@@ -799,7 +799,7 @@ RUN_COMMAND(){
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Nodes to run command { \`${RUNCMD}\` }${idsCL[Default]}"
DIVIDER; echo -e "${idsST[Reset]}"
NT_HOSTS=${NTYPE}_HOSTS[@]
for nip in "${!NT_HOSTS}"; do
if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
else NCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${nip}"; LH=''