1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Don't apply apparmor configuration when apparmor is disabled (eg. travis-ci)

This commit is contained in:
downtownallday
2020-06-02 11:21:59 -04:00
parent c945d8fbb3
commit 1d789dbe53
2 changed files with 6 additions and 4 deletions

View File

@@ -632,8 +632,10 @@ update_apparmor() {
EOF
chmod 0644 /etc/apparmor.d/local/usr.sbin.slapd
# Load settings into the kernel
apparmor_parser -r /etc/apparmor.d/usr.sbin.slapd
# Load settings into the kernel only if AppArmor is enabled
if aa-status --enabled; then
apparmor_parser -r /etc/apparmor.d/usr.sbin.slapd
fi
}