mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00
env: don't set "container" env
Leave setting the "container" variable to consumers of pkg/env. Podman is now hard-setting it to "podman" while "libpod" will set it internally to "libpod" if it's unset. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
7
pkg/env/env.go
vendored
7
pkg/env/env.go
vendored
@ -12,11 +12,10 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// DefaultEnvVariables set $PATH, $TERM and $container.
|
||||
// DefaultEnvVariables sets $PATH and $TERM.
|
||||
var DefaultEnvVariables = map[string]string{
|
||||
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||
"TERM": "xterm",
|
||||
"container": "podman",
|
||||
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||
"TERM": "xterm",
|
||||
}
|
||||
|
||||
const whiteSpaces = " \t"
|
||||
|
Reference in New Issue
Block a user