archey4/packaging/after_remove
Samuel FORESTIER d4a6b16823
[PACKAGING] Provides a dedicated AppArmor profile (#119)
Co-authored-by: Alexandre Pujol <alexandre@pujol.io>
Co-authored-by: Michael Bromilow <developer@bromilow.uk>
2024-04-13 17:20:48 +00:00

16 lines
496 B
Bash

#!/bin/sh
set -e
# Handles AppArmor profile (see dh_apparmor).
if ! [ -e /etc/apparmor.d/usr.bin.archey4 ] ; then
rm -f /etc/apparmor.d/disable/usr.bin.archey4 || true
rm -f /etc/apparmor.d/force-complain/usr.bin.archey4 || true
rm -f /etc/apparmor.d/local/usr.bin.archey4 || true
rm -f /var/cache/apparmor/*/usr.bin.archey4 || true
rmdir /etc/apparmor.d/disable 2>/dev/null || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
rmdir /etc/apparmor.d 2>/dev/null || true
fi