Update status.inc
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user