mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
apparmor install fix
This commit is contained in:
parent
436669607e
commit
3dd6c186fc
1 changed files with 3 additions and 3 deletions
|
@ -1140,10 +1140,10 @@ if [ "$named" = 'yes' ]; then
|
|||
# echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2>/dev/null
|
||||
sed -i "s#/etc/bind/\*\* rw,#/etc/bind/\*\* rw,\n /home/\*\* rwm,#g" /etc/apparmor.d/usr.sbin.named
|
||||
sed -i "s#/etc/bind/\*\* r,#/etc/bind/\*\* rw,\n /home/\*\* rwm,#g" /etc/apparmor.d/usr.sbin.named
|
||||
service apparmor status >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
# service apparmor status >/dev/null 2>&1
|
||||
# if [ $? -ne 0 ]; then
|
||||
service apparmor restart
|
||||
fi
|
||||
# fi
|
||||
fi
|
||||
update-rc.d bind9 defaults
|
||||
service bind9 start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue