mirror of
https://github.com/HorlogeSkynet/archey4
synced 2024-12-28 04:00:13 +01:00
d4a6b16823
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
|