build(debian): only reload apparmor, if it is active.
This commit is contained in:
parent
cefd372099
commit
511bca60fb
2 changed files with 2 additions and 2 deletions
2
debian/apparmor.d.postinst
vendored
2
debian/apparmor.d.postinst
vendored
|
|
@ -5,6 +5,6 @@
|
|||
|
||||
#DEBHELPER#
|
||||
|
||||
systemctl restart apparmor.service > /dev/null || true
|
||||
systemctl is-active -q apparmor && systemctl reload apparmor || :
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue