Browse Source

Don't set K3S_DATA_DIR env var

This was only used to pass the bundled strongswan path through to the flannel ipsec backend, and is no longer needed. Ref: #719

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/10647/head
Brad Davidson 4 months ago committed by Brad Davidson
parent
commit
a26a5ab1d7
  1. 3
      cmd/k3s/main.go

3
cmd/k3s/main.go

@ -193,9 +193,6 @@ func stageAndRun(dataDir, cmd string, args []string, calledAsInternal bool) erro
if err := os.Setenv("PATH", pathEnv); err != nil {
return err
}
if err := os.Setenv(version.ProgramUpper+"_DATA_DIR", dir); err != nil {
return err
}
cmd, err = exec.LookPath(cmd)
if err != nil {

Loading…
Cancel
Save