Update nodemgmt-scripts.sh
This commit is contained in:
@@ -771,15 +771,14 @@ BACKUP_UNIFINVR(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
RUN_COMMAND(){
|
RUN_COMMAND(){
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case ${1} in
|
||||||
-nt|-nodetype) nodetype=${2^^};;
|
-nt|-nodetype) nodetype=${2^^};;
|
||||||
-cmd) RUNCMD="${2}";;
|
-cmd) RUNCMD=${2};;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
|
if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then
|
||||||
echo yes
|
|
||||||
nodetype=ALL
|
nodetype=ALL
|
||||||
NT_HOSTS=ALL_HOSTS[@]
|
NT_HOSTS=ALL_HOSTS[@]
|
||||||
NTS=(${NM_NODE_TYPES[*]})
|
NTS=(${NM_NODE_TYPES[*]})
|
||||||
@@ -794,7 +793,7 @@ RUN_COMMAND(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "NODETYPE= '${nodetype}'"
|
echo "NODETYPE= '${nodetype}'"
|
||||||
echo "RUNCMD= '${RUNCMD}'"
|
echo "RUNCMD= ${RUNCMD}"
|
||||||
|
|
||||||
# for NTYPE in "${NTS[@]}"; do
|
# for NTYPE in "${NTS[@]}"; do
|
||||||
# echo -e "${idsST[Bold]}"; DIVIDER
|
# echo -e "${idsST[Bold]}"; DIVIDER
|
||||||
|
|||||||
Reference in New Issue
Block a user