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 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=${NTYPE}_HOSTS[0]
PH_CMD="ssh root@${!PH}" PH_CMD="ssh root@${!PH}"
var=${NTYPE}_REPL_CHECK[@] var=${NTYPE}_REPL_CHECK[@]
@@ -293,7 +300,7 @@ STATUS(){
echo -en " ${REPL_DESC[${rcheck}]}${spc}: " echo -en " ${REPL_DESC[${rcheck}]}${spc}: "
else else
# if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then # if [ "${rcheck}" = "nextcloud-data" ] OR [ "${rcheck}" = "nextcloud-www" ]; then
# timeout=`date --date='5 minutes' +%s` # timeout=`date --date='2 minutes' +%s`
# else # else
timeout=`date --date='1 minutes' +%s` timeout=`date --date='1 minutes' +%s`
# fi # fi
@@ -344,6 +351,7 @@ STATUS(){
nid=`expr $nid + 1` nid=`expr $nid + 1`
done done
fi fi
fi
done done
fi fi