From 41f4ebc1cbfb90f9a571cc87823ab0b3777e5e1c Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 22 Feb 2019 09:43:23 -0600 Subject: [PATCH] snap: use sudo to configure and start docker configure and start docker using sudo fixes #355 Signed-off-by: Julio Montes --- snap/snapcraft.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 20d0998af3..f3f58bc34c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -131,12 +131,12 @@ parts: export PATH="${GOROOT}/bin:${PATH}" if [ -n "$http_proxy" ]; then echo "Setting proxy $http_proxy" - systemctl set-environment http_proxy=$http_proxy || true - systemctl set-environment https_proxy=$https_proxy || true + sudo -E systemctl set-environment http_proxy=$http_proxy || true + sudo -E systemctl set-environment https_proxy=$https_proxy || true fi echo "Starting docker" - systemctl start docker || true + sudo -E systemctl start docker || true # use the same go version for all packages sed -i 's|^GO_VERSION=.*|GO_VERSION='$(go version | cut -d' ' -f3 | tr -d go)'|g' rootfs-builder/versions.txt