修正备份失败健康状态
This commit is contained in:
@@ -61,7 +61,9 @@ write_status() {
|
||||
# shellcheck disable=SC1090
|
||||
source "${status_dir}/last-job.env"
|
||||
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'
|
||||
else
|
||||
health='warning'
|
||||
|
||||
Reference in New Issue
Block a user