diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-08-12 14:11:53 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-08-12 14:11:53 -0400 |
commit | d27e71374e89b3c88b486f8a7015185c9fe13ea9 (patch) | |
tree | 45064631551c7aa2fb13dd6b08c3ac0e4547c344 /libpod/runtime.go | |
parent | 9bee6907a5d867ab866374c6c7d8a45e3fa705da (diff) | |
download | podman-d27e71374e89b3c88b486f8a7015185c9fe13ea9.tar.gz podman-d27e71374e89b3c88b486f8a7015185c9fe13ea9.tar.bz2 podman-d27e71374e89b3c88b486f8a7015185c9fe13ea9.zip |
Use GetRuntimeDir to setup auth.json for login
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r-- | libpod/runtime.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index 8a4eee081..ca59dc304 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -365,7 +365,7 @@ func SetXdgDirs() error { if runtimeDir == "" { var err error - runtimeDir, err = util.GetRootlessRuntimeDir() + runtimeDir, err = util.GetRuntimeDir() if err != nil { return err } @@ -391,11 +391,11 @@ func getDefaultTmpDir() (string, error) { return "/var/run/libpod", nil } - rootlessRuntimeDir, err := util.GetRootlessRuntimeDir() + runtimeDir, err := util.GetRuntimeDir() if err != nil { return "", err } - libpodRuntimeDir := filepath.Join(rootlessRuntimeDir, "libpod") + libpodRuntimeDir := filepath.Join(runtimeDir, "libpod") if err := os.Mkdir(libpodRuntimeDir, 0700|os.ModeSticky); err != nil { if !os.IsExist(err) { |