mirror of
https://github.com/containers/podman.git
synced 2025-06-28 14:29:04 +08:00
Merge pull request #8725 from rhatdan/TMPDIR
Allow users to specify TMPDIR in containers.conf
This commit is contained in:
@ -31,11 +31,6 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
// Hard code TMPDIR functions to use /var/tmp, if user did not override
|
||||
if _, ok := os.LookupEnv("TMPDIR"); !ok {
|
||||
os.Setenv("TMPDIR", "/var/tmp")
|
||||
}
|
||||
|
||||
rootCmd = parseCommands()
|
||||
|
||||
Execute()
|
||||
|
@ -178,6 +178,10 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
// Hard code TMPDIR functions to use /var/tmp, if user did not override
|
||||
if _, ok := os.LookupEnv("TMPDIR"); !ok {
|
||||
os.Setenv("TMPDIR", "/var/tmp")
|
||||
}
|
||||
|
||||
if !registry.IsRemote() {
|
||||
if cmd.Flag("cpu-profile").Changed {
|
||||
|
Reference in New Issue
Block a user