From b76240b71115b0c1cfa046d43d19cb8eee414373 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Nov 2019 16:00:38 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 679d0cd4..b4e2b061 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -284,7 +284,11 @@ STATUS(){ if [ "${ST_ACTION}" != "check" ]; then c=0; cw=22; spc='' spc1=${cw}-${#REPL_DESC[${rcheck}]} - timeout=`date --date='20 seconds' +%s` + if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then + timeout=`date --date='2 minutes' +%s` + else + timeout=`date --date='20 seconds' +%s` + fi until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en " ${REPL_DESC[${rcheck}]}${spc}: " else @@ -293,8 +297,11 @@ STATUS(){ else timeout=`date --date='1 minutes' +%s` fi - echo "TIMEOUT: ${rcheck} - ${timeout}" + fi + + echo "TIMEOUT: ${rcheck} - ${timeout}" + checked=false until [ "${checked}" = "" ]; do if [ "${PH_CMD}" = "" ]; then