update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERS='5.1.44-12292023'
|
VERS='5.1.45-12292023'
|
||||||
NM_BETA=false
|
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 '
|
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 '
|
||||||
|
|||||||
@@ -164,7 +164,10 @@ STATUS(){
|
|||||||
killall bash
|
killall bash
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
[ ${nc_count} -eq ${#ntypesel[@]} ] && completed=true && break
|
if [ ${nc_count} -eq ${#ntypesel[@]} ]; then
|
||||||
|
completed=true
|
||||||
|
break
|
||||||
|
fi
|
||||||
sleep 1s
|
sleep 1s
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -218,14 +221,19 @@ STATUS(){
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checked=""
|
checked=""; scanstart=$(date +%s)
|
||||||
until [ "${checked}" != "" ]; do
|
until [ "${checked}" != "" ]; do
|
||||||
if [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.good ]; then
|
if [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.good ]; then
|
||||||
checked=good
|
checked=good
|
||||||
elif [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then
|
elif [ -f ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then
|
||||||
checked=timeout
|
checked=timeout
|
||||||
fi
|
fi
|
||||||
done
|
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
|
||||||
|
done
|
||||||
|
|
||||||
if [ "${checked}" == "timeout" ]; then
|
if [ "${checked}" == "timeout" ]; then
|
||||||
[ "${STATUS_ACTION}" != "check" ] && echo -e "${idsCL[Red]}Timeout${idsCL[Default]}"
|
[ "${STATUS_ACTION}" != "check" ] && echo -e "${idsCL[Red]}Timeout${idsCL[Default]}"
|
||||||
@@ -783,7 +791,10 @@ REPLCHECK(){
|
|||||||
else
|
else
|
||||||
ssh -q root@${nip} [[ -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl ]] && checked="`${PH_CMD} \"ssh -o ConnectTimeout=3 root@${nip} \"cat ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl\" | diff - ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl\"`"
|
ssh -q root@${nip} [[ -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl ]] && checked="`${PH_CMD} \"ssh -o ConnectTimeout=3 root@${nip} \"cat ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl\" | diff - ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl\"`"
|
||||||
fi
|
fi
|
||||||
[ "`date +%s`" -gt "${timeout}" ] && timeout=true && break
|
if [ "`date +%s`" -gt "${timeout}" ]; then
|
||||||
|
timeout=true
|
||||||
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
[ "${timeout}" == "true" ] && touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout || touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.good
|
[ "${timeout}" == "true" ] && touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.timeout || touch ${STATUSRUN_TMPFOLDER}/repl.${rcheck}.${nip}.good
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user