update
This commit is contained in:
@@ -147,7 +147,7 @@ STATUS(){
|
||||
## NODE SERVICE AND DOCKER CHECK
|
||||
###################################
|
||||
|
||||
nc_count=0; completed=false
|
||||
nc_count=0; completed=false; scanstart=$(date +%s)
|
||||
until [ "${completed}" == "true" ]; do
|
||||
for nodestatus in ${STATUSRUN_TMPFOLDER}/status-check.*.done; do
|
||||
NTS=$(grep -oP '(?<=status-check.).*?(?=.done)' <<< "${nodestatus}")
|
||||
@@ -159,7 +159,13 @@ STATUS(){
|
||||
# echo "${NTS} == ${nc_count} == ${nodestatus}"
|
||||
fi
|
||||
done
|
||||
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true
|
||||
if [ $(($(date +%s)-scanstart)) -gt 600 ]; then
|
||||
SENDNOTICE "NMG Scan Stuck" "NMG Status scan has been running for 10mins, klling all bash...." 1
|
||||
killall bash
|
||||
exit 1
|
||||
fi
|
||||
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true && break
|
||||
sleep 1s
|
||||
done
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user