From b113c0599fda7a3262c4a4aea84628cc5f2261c9 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 14 Jan 2020 17:19:18 +0800 Subject: [PATCH] host fix env path --- pkg/hostman/hostinfo/hostinfo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 13ec77cdcf..78b8747569 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -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, ":")) }