Skip to content

Commit 753a1f6

Browse files
committed
Disable apparmor on lxc containers.
1 parent aa072f8 commit 753a1f6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

install/hst-install-debian.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,15 @@ if [ "$phpfpm" = 'yes' ]; then
732732
software=$(echo "$software" | sed -e 's/php-mysql//')
733733
fi
734734

735+
#----------------------------------------------------------#
736+
Disable Apparmor on LCX #
737+
#----------------------------------------------------------#
738+
739+
if grep --quiet lxc /proc/1/environ; then
740+
systemctl stop apparmor
741+
systemctl disable apparmor
742+
fi
743+
735744

736745
#----------------------------------------------------------#
737746
# Install packages #

install/hst-install-ubuntu.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,16 @@ if [ "$phpfpm" = 'yes' ]; then
699699
fi
700700

701701

702+
#----------------------------------------------------------#
703+
Disable Apparmor on LCX #
704+
#----------------------------------------------------------#
705+
706+
if grep --quiet lxc /proc/1/environ; then
707+
systemctl stop apparmor
708+
systemctl disable apparmor
709+
fi
710+
711+
702712
#----------------------------------------------------------#
703713
# Install packages #
704714
#----------------------------------------------------------#

0 commit comments

Comments
 (0)