update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='4.6.12-04302023'
|
VERS='4.6.20-04302023'
|
||||||
|
|
||||||
#NODETYPES=WEB,LB
|
#NODETYPES=WEB,LB
|
||||||
NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
|
NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
|
||||||
|
|||||||
@@ -443,7 +443,6 @@ STATUS(){
|
|||||||
[ "${ST_ACTION}" != "report" ] && c=0; cw=30; spc=''; spc1=${cw}-${#REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done || spc=' '
|
[ "${ST_ACTION}" != "report" ] && c=0; cw=30; spc=''; spc1=${cw}-${#REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done || spc=' '
|
||||||
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
|
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
|
||||||
timeout=`date --date='2 minutes' +%s`
|
timeout=`date --date='2 minutes' +%s`
|
||||||
warn_timeout=`date --date='30 secs' +%s`
|
|
||||||
else
|
else
|
||||||
timeout=`date --date='2 minutes' +%s`
|
timeout=`date --date='2 minutes' +%s`
|
||||||
fi
|
fi
|
||||||
@@ -459,9 +458,6 @@ STATUS(){
|
|||||||
if [ "`date +%s`" -gt "${timeout}" ]; then
|
if [ "`date +%s`" -gt "${timeout}" ]; then
|
||||||
timeout=true
|
timeout=true
|
||||||
break
|
break
|
||||||
elif [ "`date +%s`" -gt "${warn_timeout}" ] && [ "${ST_ACTION}" != "report" ]; then
|
|
||||||
echo -en " waiting for sync... "
|
|
||||||
warn_timeout=`date --date='100 minutes' +%s`
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# replend=`date +%s`
|
# replend=`date +%s`
|
||||||
|
|||||||
Reference in New Issue
Block a user