mirror of
https://github.com/containers/podman.git
synced 2025-06-30 07:26:39 +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
|
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()
|
rootCmd = parseCommands()
|
||||||
|
|
||||||
Execute()
|
Execute()
|
||||||
|
@ -178,6 +178,10 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
|||||||
return err
|
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 !registry.IsRemote() {
|
||||||
if cmd.Flag("cpu-profile").Changed {
|
if cmd.Flag("cpu-profile").Changed {
|
||||||
|
Reference in New Issue
Block a user