The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8079

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 <stgra...@ubuntu.com>
From 156dc7b463a88fdbb952a4e46e11a74dc5a563b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Thu, 22 Oct 2020 19:21:36 -0400
Subject: [PATCH] scripts/bash: Fix snap handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 scripts/bash/lxd-client | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/bash/lxd-client b/scripts/bash/lxd-client
index 37769d8ec9..dc84465994 100644
--- a/scripts/bash/lxd-client
+++ b/scripts/bash/lxd-client
@@ -55,6 +55,10 @@ _have lxc && {
       return 0
     fi
 
+    if [ -n "${SNAP_COMMON:-""}" ]; then
+      export LXD_DIR=${LXD_DIR:-"${SNAP_COMMON}/lxd/"}
+    fi
+
     lxc_cmds="alias cluster config console copy delete exec export file \
       help image import info init launch list manpage monitor move network \
       operation pause profile project publish query remote rename \
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to