update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
VERS='5.1.43-12282023'
|
||||
VERS='5.1.44-12292023'
|
||||
NM_BETA=false
|
||||
|
||||
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck '
|
||||
|
||||
@@ -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