Ver Fonte

Fix apparmor check

Raphael Schneeberger há 7 anos atrás
pai
commit
3d5afacdd6
2 ficheiros alterados com 2 adições e 4 exclusões
  1. 1 2
      install/hst-install-debian.sh
  2. 1 2
      install/hst-install-ubuntu.sh

+ 1 - 2
install/hst-install-debian.sh

@@ -758,8 +758,7 @@ fi
 #----------------------------------------------------------#
 
 if grep --quiet lxc /proc/1/environ; then
-    systemctl status apparmor
-    if [ $? = 0 ]; then
+    if [ -f /etc/init.d/apparmor ]; then
         systemctl stop apparmor
         systemctl disable apparmor
     fi

+ 1 - 2
install/hst-install-ubuntu.sh

@@ -725,8 +725,7 @@ fi
 #----------------------------------------------------------#
 
 if grep --quiet lxc /proc/1/environ; then
-    systemctl status apparmor
-    if [ $? = 0 ]; then
+    if [ -f /etc/init.d/apparmor ]; then
         systemctl stop apparmor
         systemctl disable apparmor
     fi