mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
fix: 解决计划任务备份上传路径错误的问题 (#3742)
This commit is contained in:
parent
a5304b66e3
commit
e309b9c030
@ -265,6 +265,9 @@ func loadClientMap(backupAccounts string) (map[string]cronjobUploadHelper, error
|
||||
return nil, err
|
||||
}
|
||||
pathItem := account.BackupPath
|
||||
if account.BackupPath != "/" {
|
||||
pathItem = strings.TrimPrefix(account.BackupPath, "/")
|
||||
}
|
||||
clients[target] = cronjobUploadHelper{
|
||||
client: client,
|
||||
backupPath: pathItem,
|
||||
|
Loading…
Reference in New Issue
Block a user