This commit is contained in:
2023-07-16 15:54:31 -05:00
parent 2fc32ec3e9
commit d3f67b59b2
2 changed files with 5 additions and 5 deletions

View File

@@ -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'

View File

@@ -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