mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 12:18:09 +08:00
Merge branch 'V3.7' of https://github.com/goodrain/rainbond into V3.7
This commit is contained in:
commit
7c4a27de4b
@ -423,13 +423,14 @@ func GetPrivateFile(tenantID string) string {
|
||||
if home == "" {
|
||||
home = "/root"
|
||||
}
|
||||
if tenantID == "builder_rsa" {
|
||||
if ok, _ := util.FileExists(path.Join(home, "/.ssh/"+tenantID)); ok {
|
||||
return path.Join(home, "/.ssh/"+tenantID)
|
||||
} else {
|
||||
if ok, _ := util.FileExists(path.Join(home, "/.ssh/builder_rsa")); ok {
|
||||
return path.Join(home, "/.ssh/builder_rsa")
|
||||
}
|
||||
return path.Join(home, "/.ssh/id_rsa")
|
||||
}
|
||||
return path.Join(home, "/.ssh/"+tenantID)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user