Skip to content

Commit 3c10c84

Browse files
authored
Merge pull request #1895 from stgraber/oci
incusd/instance/lxc: Use pre-existing PATH when not overridden
2 parents 21b0fac + e5425ce commit 3c10c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server/instance/drivers/driver_lxc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ func (d *lxc) Start(stateful bool) error {
27972797

27982798
_, ok := envDict["PATH"]
27992799
if !ok {
2800-
envDict["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
2800+
envDict["PATH"] = os.Getenv("PATH")
28012801
}
28022802

28032803
env := make([]string, 0, len(envDict))

0 commit comments

Comments
 (0)