From 558f60d5f58bad11fb08535b357261b8123e64d6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 14:29:09 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9dd92f09..72436666 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -35,17 +35,17 @@ STATUS() { # fi # done - # for rcheck in "${REPL_CHECK[@]}"; do - # ${NCMD} rm -f ${FOLDER}/test.repl - # daterun=`date +%Y-%m-%d-%H-%M-%S` - # if [ "${NCMD}" = "" ]; then - # echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl - # yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl - # else - # ${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl" - # yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl" - # fi - # done + for rcheck in "${REPL_CHECK[@]}"; do + ${NCMD} rm -f ${FOLDER}/test.repl + daterun=`date +%Y-%m-%d-%H-%M-%S` + if [ "${NCMD}" = "" ]; then + echo -e "iDS-Node${nid} (${nip})\n${daterun}" > ${FOLDER}/test.repl + yes | cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl + else + ${NCMD} "echo -e \"Status-Check (${NODE_HOSTNAME})\n${daterun}\" > ${FOLDER}/test.repl" + yes | ${NCMD} "cp -rfH ${FOLDER}/test.repl ${REPL_CHECKS[${rcheck}]}/test.repl" + fi + done echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsCL[Yellow]} Node Service Status${idsCL[Default]}"