build(debian): improve post install scripts.
This commit is contained in:
parent
e805509803
commit
ca24da7a2a
2 changed files with 8 additions and 2 deletions
5
debian/apparmor.d.postrm
vendored
5
debian/apparmor.d.postrm
vendored
|
|
@ -7,6 +7,9 @@ set -e
|
|||
|
||||
#DEBHELPER#
|
||||
|
||||
systemctl is-active -q apparmor && systemctl reload apparmor ||:
|
||||
apparmor_parser --purge-cache
|
||||
if systemctl is-active -q apparmor; then
|
||||
systemctl reload apparmor
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue