mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 22:46:47 +01:00
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#
|
#DEBHELPER#
|
||||||
|
|
||||||
systemctl restart apparmor.service > /dev/null || true
|
systemctl is-active -q apparmor && systemctl reload apparmor || :
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
2
debian/apparmor.d.postrm
vendored
2
debian/apparmor.d.postrm
vendored
|
@ -5,6 +5,6 @@
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
systemctl restart apparmor.service > /dev/null || true
|
systemctl is-active -q apparmor && systemctl reload apparmor ||:
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue