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/10650/head
Brad Davidson 2024-07-29 19:22:18 +00:00 committed by Brad Davidson
parent 93fc189778
commit 55211a466f
1 changed files with 0 additions and 3 deletions

View File

@ -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 {