The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3577
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <[email protected]>
From 604bfcb21da4b96ff923ff2cdbffd87dee09a82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]> Date: Sat, 22 Jul 2017 09:55:49 +0200 Subject: [PATCH] lxc: Respect HOME if set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <[email protected]> --- lxc/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lxc/main.go b/lxc/main.go index d5b940fca..7d4dfeef8 100644 --- a/lxc/main.go +++ b/lxc/main.go @@ -52,6 +52,8 @@ func run() error { var configDir string if os.Getenv("LXD_CONF") != "" { configDir = os.Getenv("LXD_CONF") + } else if os.Getenv("HOME") != "" { + configDir = path.Join(os.Getenv("HOME"), ".config", "lxc") } else { user, err := user.Current() if err != nil {
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
