Update nodemgmt-scripts.sh
This commit is contained in:
@@ -46,6 +46,7 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
replstart=`date +%s`
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
@@ -488,6 +489,8 @@ STATUS(){
|
|||||||
warn_timeout=`date --date='100 minutes' +%s`
|
warn_timeout=`date --date='100 minutes' +%s`
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
replend=`date +%s`
|
||||||
|
replruntime=$((replend-replstart))
|
||||||
if [ "${timeout}" = "true" ]; then
|
if [ "${timeout}" = "true" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -e "${idsCL[Red]}Timeout${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Timeout${idsCL[Default]}"
|
||||||
@@ -499,7 +502,7 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Good${idsCL[Default]} - synced in $(SHOW_TIME ${replruntime})"
|
||||||
fi
|
fi
|
||||||
if [ -f ${FOLDER}/${nip}-${rcheck}.down ]; then
|
if [ -f ${FOLDER}/${nip}-${rcheck}.down ]; then
|
||||||
rm -f ${FOLDER}/${nip}-${rcheck}.down
|
rm -f ${FOLDER}/${nip}-${rcheck}.down
|
||||||
|
|||||||
Reference in New Issue
Block a user