mirror of
https://github.com/HorlogeSkynet/archey4
synced 2025-02-24 04:00:43 +01:00

Co-authored-by: Alexandre Pujol <alexandre@pujol.io> Co-authored-by: Michael Bromilow <developer@bromilow.uk>
16 lines
496 B
Bash
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
|