From ce4f9b2d5afbc03a3e98bd5bfe69f7eb9810305d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 19 Dec 2023 12:36:36 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 09fcff2f..ef6063eb 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -31,7 +31,7 @@ STATUS(){ ## REPLICATION CHECK SETUP ############################ - [ "${PW_DISABLE_REPL_CHECK}" != "true" ] && ([ ! -f ${NM_TMPFOLDER}/.replcheck ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replcheck)) -ge 300 ]) && REPLRUN=1 || REPLRUN=0 + [ "${NM_DISABLE_REPL_CHECK}" != "true" ] && ([ ! -f ${NM_TMPFOLDER}/.replcheck ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replcheck)) -ge 300 ]) && REPLRUN=1 || REPLRUN=0 # if [ "${STATUS_ACTION}" == "report" ] || [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "check" ] || [ "${STATUS_ACTION}" == "" ]; then if [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "" ] || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]) || ([ "${ntss}" != "" ] && ([ "${STATUS_ACTION}" == "services" ] || [ "${STATUS_ACTION}" == "" ] || [ "${STATUS_ACTION}" == "repl" ]) && [ "${NM_REPL_CHECK[${ntss}]}" != "" ]); then if [ "${STATUS_ACTION}" != "check" ]; then