Update nodemgmt-scripts.sh

This commit is contained in:
2019-11-24 16:00:38 -06:00
parent b51dba9ce8
commit b76240b711

View File

@@ -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