fix: 镜像操作状态获取、显示优化

This commit is contained in:
ssongliu
2023-02-14 11:28:38 +08:00
committed by ssongliu
parent bce1995969
commit b0e23ec2c7
26 changed files with 162 additions and 84 deletions

View File

@@ -659,7 +659,7 @@ func backupMysql(backupType, baseDir, backupDir, mysqlName, dbName, fileName str
FileDir: backupDir,
FileName: fileName,
}
if baseDir != constant.TmpDir || backupType == "LOCAL" {
if baseDir != global.CONF.System.TmpDir || backupType == "LOCAL" {
record.Source = "LOCAL"
record.FileDir = fullDir
}