From 5d500cb2652521dfc1ea218d60eb78b1756c50b5 Mon Sep 17 00:00:00 2001 From: Jack Ivanov Date: Sat, 9 May 2020 22:17:00 +0300 Subject: [PATCH] purge snapd for 20.04 --- tests/pre-deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pre-deploy.sh b/tests/pre-deploy.sh index 69274f0..84a0db6 100755 --- a/tests/pre-deploy.sh +++ b/tests/pre-deploy.sh @@ -24,7 +24,10 @@ lxc profile set default raw.lxc lxc.aa_profile=unconfined lxc profile set default security.privileged true lxc profile show default lxc launch ubuntu:${UBUNTU_VERSION} algo -lxc exec algo -- apt remove snapd --purge -y || true + +if [[ ${UBUNTU_VERSION} == "20.04" ]]; then + lxc exec algo -- apt remove snapd --purge -y || true +fi ip addr