Skip to content

Commit 3d5afac

Browse files
committed
Fix apparmor check
1 parent 9ac8fc3 commit 3d5afac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,7 @@ fi
758758
#----------------------------------------------------------#
759759

760760
if grep --quiet lxc /proc/1/environ; then
761-
systemctl status apparmor
762-
if [ $? = 0 ]; then
761+
if [ -f /etc/init.d/apparmor ]; then
763762
systemctl stop apparmor
764763
systemctl disable apparmor
765764
fi

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@ fi
725725
#----------------------------------------------------------#
726726

727727
if grep --quiet lxc /proc/1/environ; then
728-
systemctl status apparmor
729-
if [ $? = 0 ]; then
728+
if [ -f /etc/init.d/apparmor ]; then
730729
systemctl stop apparmor
731730
systemctl disable apparmor
732731
fi

0 commit comments

Comments
 (0)