From 02c4808ba8f91fde1aea3371d02a4c2a0ad57b44 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Nov 2019 16:06:31 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b4e2b061..cc3475f5 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -284,10 +284,12 @@ STATUS(){ if [ "${ST_ACTION}" != "check" ]; then c=0; cw=22; spc='' spc1=${cw}-${#REPL_DESC[${rcheck}]} - if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then + if [ "${rcheck}" = "nextcloud-data" ] || [ "${rcheck}" = "nextcloud-www" ]; then timeout=`date --date='2 minutes' +%s` + t='2min' else timeout=`date --date='20 seconds' +%s` + t='20secs' fi until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en " ${REPL_DESC[${rcheck}]}${spc}: " @@ -300,7 +302,7 @@ STATUS(){ fi - echo "TIMEOUT: ${rcheck} - ${timeout}" + echo "TIMEOUT: ${rcheck} - ${t}" checked=false until [ "${checked}" = "" ]; do