update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
VERS='4.9.12-07162023'
|
||||
VERS='4.9.14-07162023'
|
||||
|
||||
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns '
|
||||
CERT_DAEMON='/snap/bin/certbot'
|
||||
|
||||
@@ -799,7 +799,7 @@ GUI(){
|
||||
if [ ! -f "${NM_FOLDER}/status-check.running" ]; then
|
||||
touch "${NM_FOLDER}/status-check.running"
|
||||
if [ "${2}" == "report" ]; then
|
||||
start_status=`date +%s`
|
||||
# start_status=`date +%s`
|
||||
echo "$(date) - LOCAL - ${NODE_HOSTNAME} - Starting Status Check" >> ${NM_LOGFILE}
|
||||
echo -e "$(date) - Starting status check #############################\n" > ${NM_FOLDER}/status-check.running
|
||||
STATUS report ${3} >> ${NM_FOLDER}/status-check.running
|
||||
@@ -809,9 +809,9 @@ GUI(){
|
||||
rm -f ${NM_FOLDER}/status-check.lastrun
|
||||
mv ${NM_FOLDER}/status-check.running ${NM_FOLDER}/status-check.lastrun
|
||||
|
||||
end_status=`date +%s`
|
||||
runtime_status=$((end_status-start_status))
|
||||
echo -e "\nRuntime: ${runtime_status}" >> ${NM_FOLDER}/status-check.lastrun
|
||||
# end_status=`date +%s`
|
||||
# runtime_status=$((end_status-start_status))
|
||||
# echo -e "\nRuntime: ${runtime_status}" >> ${NM_FOLDER}/status-check.lastrun
|
||||
|
||||
if [ "${3}" == "email" ]; then
|
||||
echo -e "\n\n" >> ${NM_FOLDER}/status-check.lastrun
|
||||
|
||||
Reference in New Issue
Block a user