Update nodemgmt-scripts.sh

This commit is contained in:
2019-11-24 16:06:31 -06:00
parent b76240b711
commit 02c4808ba8

View File

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