修正备份失败健康状态
This commit is contained in:
@@ -61,7 +61,9 @@ write_status() {
|
|||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source "${status_dir}/last-job.env"
|
source "${status_dir}/last-job.env"
|
||||||
fi
|
fi
|
||||||
if [[ -n "${local_complete}" && -n "${remote_complete}" && -n "${binlog_file}" ]]; then
|
if [[ "${job_status}" == 'failed' ]]; then
|
||||||
|
health='warning'
|
||||||
|
elif [[ -n "${local_complete}" && -n "${remote_complete}" && -n "${binlog_file}" ]]; then
|
||||||
health='healthy'
|
health='healthy'
|
||||||
else
|
else
|
||||||
health='warning'
|
health='warning'
|
||||||
|
|||||||
Reference in New Issue
Block a user