Skip to content

Commit fc3a1c5

Browse files
committed
Fix named rule for AppArmor (thanks to @kristankenney).
1 parent 51e9ace commit fc3a1c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ if [ "$named" = 'yes' ]; then
12551255
chmod 640 /etc/bind/named.conf.options
12561256
aa-complain /usr/sbin/named 2>/dev/null
12571257
if [ "$apparmor" = 'yes' ]; then
1258-
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2>/dev/null
1258+
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2> /dev/null
12591259
service apparmor status >/dev/null 2>&1
12601260
if [ $? -ne 0 ]; then
12611261
service apparmor restart

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ if [ "$named" = 'yes' ]; then
12281228
chmod 640 /etc/bind/named.conf
12291229
chmod 640 /etc/bind/named.conf.options
12301230
aa-complain /usr/sbin/named > /dev/null 2>&1
1231-
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named > /dev/null 2>&1
1231+
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2> /dev/null
12321232
if ! grep --quiet lxc /proc/1/environ; then
12331233
service apparmor status > /dev/null 2>&1
12341234
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)