Răsfoiți Sursa

Fix apparmor check

Raphael Schneeberger 7 ani în urmă
părinte
comite
3d5afacdd6
2 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  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
 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 stop apparmor
         systemctl disable apparmor
         systemctl disable apparmor
     fi
     fi

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

@@ -725,8 +725,7 @@ fi
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
 if grep --quiet lxc /proc/1/environ; then
 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 stop apparmor
         systemctl disable apparmor
         systemctl disable apparmor
     fi
     fi