We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce97ae commit 08c3436Copy full SHA for 08c3436
install/hst-install-ubuntu.sh
@@ -1222,10 +1222,12 @@ if [ "$named" = 'yes' ]; then
1222
chmod 640 /etc/bind/named.conf.options
1223
aa-complain /usr/sbin/named > /dev/null 2>&1
1224
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named > /dev/null 2>&1
1225
- service apparmor status > /dev/null 2>&1
1226
- if [ $? -ne 0 ]; then
1227
- service apparmor restart
1228
- fi
+ if ! grep --quiet lxc /proc/1/environ; then
+ service apparmor status > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ service apparmor restart
1229
+ fi
1230
1231
update-rc.d bind9 defaults
1232
service bind9 start
1233
check_result $? "bind9 start failed"
0 commit comments