Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-10 23:11:53 -06:00
parent 3ae4f77113
commit 7d9cfdcd0e

View File

@@ -259,6 +259,13 @@ STATUS(){
for NTYPE in "${NODE_TYPES[@]}"; do
GOREPCHK=false;
if [ date +"%H" -ge "12" ] && [ date +"%H" -le "13" ] && [ "${NTYPE}" = "NC" ]; then
GOREPCHK=true;
elif [ "${NTYPE}" != "NC" ]; then
GOREPCHK=true;
fi
if [ "${GOREPCHK}" = "true" ]; then
PH=${NTYPE}_HOSTS[0]
PH_CMD="ssh root@${!PH}"
var=${NTYPE}_REPL_CHECK[@]
@@ -293,7 +300,7 @@ STATUS(){
echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
else
# if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then
# timeout=`date --date='5 minutes' +%s`
# timeout=`date --date='2 minutes' +%s`
# else
timeout=`date --date='1 minutes' +%s`
# fi
@@ -344,6 +351,7 @@ STATUS(){
nid=`expr $nid + 1`
done
fi
fi
done
fi