From ef4ae3111916c1ce9e6946970ca1b3fb39387406 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Sep 2023 22:09:27 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/status.inc | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/defaults.inc b/defaults.inc index 230c4617..0321e15a 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERS='4.12.20-09112023' +VERS='4.12.21-09112023' noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense ' CERT_DAEMON='/snap/bin/certbot' diff --git a/inc/status.inc b/inc/status.inc index 3471b075..4e3d6ccb 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -714,12 +714,16 @@ REPLCHECK(){ rcheck=${1} nip=${2} PH_CMD=${3} - if [ "${4}" != "check" ]; then - timeout=`date --date='1 minutes' +%s` - # timeout=`date --date='30 seconds' +%s` - else - timeout=`date --date='2 minutes' +%s` - fi + + # if [ "${4}" != "check" ]; then + # timeout=`date --date='1 minutes' +%s` + # # timeout=`date --date='30 seconds' +%s` + # else + # timeout=`date --date='2 minutes' +%s` + # fi + timeout=`date --date='1 minutes' +%s` + # timeout=`date --date='30 seconds' +%s` + checked=false until [ "${checked}" == "" ]; do if [ "${PH_CMD}" == "" ]; then