test(packer): ensure aa-update remove old aa cache.

This commit is contained in:
Alexandre Pujol 2024-01-27 19:35:28 +00:00
parent 7c7e897d45
commit 8dfd58a335
Failed to generate hash of commit

View file

@ -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