From 24216a38904c95732ea05c37c9e413151b2c2ae6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 11:20:23 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5c10c3c3..3652c803 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -98,7 +98,11 @@ STATUS() { echo -en " ${REPL_DESC[${rcheck}]}${spc}: " checked=false until [ "${checked}" = "" ]; do - checked=`ssh root@${nip} "cat ${REPL_CHECKS[${rcheck}]}/test.repl" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl` + if [ "${NCMD}" = "" ]; then + checked=`ssh root@${nip} "cat ${REPL_CHECKS[${rcheck}]}/test.repl" | diff - ${REPL_CHECKS[${rcheck}]}/test.repl` + else + checked=`ssh root@${nip} "cat ${REPL_CHECKS[${rcheck}]}/test.repl" | diff - ${NCMD} "cat ${REPL_CHECKS[${rcheck}]}/test.repl"` + fi if [ "`date +%s`" -gt "$timeout" ]; then if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "Timeout occurred in waiting for replication between nodes." | mail -s "Status-Check" ${STATUS_CHECK_EMAIL}