From 8dfd58a335215ca7357afc60e6ac564d1a165139 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 27 Jan 2024 19:35:28 +0000 Subject: [PATCH] test(packer): ensure aa-update remove old aa cache. --- tests/packer/src/aa-update | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/packer/src/aa-update b/tests/packer/src/aa-update index 4d0340f2..a5683291 100644 --- a/tests/packer/src/aa-update +++ b/tests/packer/src/aa-update @@ -12,14 +12,17 @@ DISTRIBUTION="$(_lsb_release)" cd "$HOME/Projects/apparmor.d" case "$DISTRIBUTION" in -arch) make pkg ;; +arch) + make pkg + ;; debian | ubuntu | whonix) sudo rm -rf debian/.debhelper/ make dpkg sudo rm -rf debian/.debhelper/ - sudo rm -rf /etc/apparmor/earlypolicy/ - sudo systemctl restart apparmor || sudo systemctl status apparmor ;; opensuse*) make rpm ;; *) ;; esac + +sudo rm -rf /etc/apparmor/earlypolicy/ +sudo systemctl restart apparmor || sudo systemctl status apparmor