mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(baremetal,esxiagent): no cloudroot user initialized
This commit is contained in:
@@ -57,5 +57,8 @@ func Init(initPrivatePrefixes []string, cloudrootDir string) error {
|
||||
}
|
||||
hostCpuArch = strings.TrimSpace(string(cpuArch))
|
||||
cloudrootDirectory = cloudrootDir
|
||||
if len(cloudrootDirectory) == 0 {
|
||||
cloudrootDirectory = "/opt"
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user