Merge pull request #4888 from wanyaoqi/bugfix/wyq/host-misc0114

host fix env path
This commit is contained in:
Zexi Li
2020-01-14 17:26:56 +08:00
committed by GitHub
+2 -2
View File
@@ -391,12 +391,12 @@ func (h *SHostInfo) detectiveStorageSystem() {
func (h *SHostInfo) fixPathEnv() error {
var paths = []string{
"/usr/bin", // usr bin at first for host container deploy
"/usr/sbin",
"/usr/local/sbin",
"/usr/local/bin",
"/sbin",
"/bin",
"/usr/sbin",
"/usr/bin",
}
return os.Setenv("PATH", strings.Join(paths, ":"))
}