mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #4888 from wanyaoqi/bugfix/wyq/host-misc0114
host fix env path
This commit is contained in:
@@ -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, ":"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user