Update status.inc

This commit is contained in:
2024-12-05 17:44:50 -06:00
parent b02c2a1ffe
commit 53a89cfc30

View File

@@ -38,7 +38,7 @@ STATUS(){
([ -f ${NM_TMPFOLDER}/.replcheck.fail ] && [ ${REPLRUN} -eq 0 ] && [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replcheck.fail)) -ge 60 ]) && REPLRUN=1
[ ${REPLRUN} -eq 1 ] && touch ${NM_TMPFOLDER}/.replcheck
# if [ "${STATUS_ACTION}" == "report" ] || [ "${STATUS_ACTION}" == "repl" ] || [ "${STATUS_ACTION}" == "check" ] || [ "${STATUS_ACTION}" == "" ]; then
if [ "${STATUS_ACTION}" == "repl" ] || ([ "${STATUS_ACTION}" == "" ] && [ "${ntss}" == "" ]) || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]) || ([ "${ntss}" != "" ] && [ "${NM_REPL_CHECK[${ntss}]}" != "" ] && [ "${STATUS_ACTION}" == "repl" ]); then
if [ "${STATUS_ACTION}" == "repl" ] || ([ "${STATUS_ACTION}" == "report" ] && [ ${REPLRUN} -eq 1 ]) || ([ "${ntss}" != "" ] && [ "${NM_REPL_CHECK[${ntss}]}" != "" ] && [ "${STATUS_ACTION}" == "repl" ]); then
touch ${NM_TMPFOLDER}/.replcheck
if [ "${STATUS_ACTION}" != "check" ]; then
MSG="Setting up replication checks"