From 5c0a8a940f2349484d747e6f8358a1bfda3a84e5 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 9 Jun 2020 10:54:48 -0700 Subject: [PATCH] Run with lxd group. --- snap/local/build_and_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snap/local/build_and_install.sh b/snap/local/build_and_install.sh index 1241d15f3..f103477f1 100755 --- a/snap/local/build_and_install.sh +++ b/snap/local/build_and_install.sh @@ -14,5 +14,7 @@ sudo /snap/bin/lxd.migrate -yes sudo /snap/bin/lxd waitready sudo /snap/bin/lxd init --auto tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt > constraints.txt -snapcraft --use-lxd +# Run snapcraft with the lxd group since it has not been added to the current +# shell. +sg lxd -c 'snapcraft --use-lxd' sudo snap install --dangerous --classic *.snap