bind: Group accessibility for /var/chroot-bind
This commit is contained in:
parent
7ad55027da
commit
9cedf84dae
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
# Gregory Colpart <reg@debian.org>
|
||||
# chroot (or re-chroot) script for bind9
|
||||
|
||||
# tested on Debian Wheezy/Jessie/Stretch/Buster
|
||||
# tested on Debian Wheezy/Jessie/Stretch/Buster/Bullseye
|
||||
# Exec this script after `(apt-get|aptitude|apt) install bind9`
|
||||
# and after *each* bind9 upgrade
|
||||
|
||||
|
@ -27,6 +27,8 @@ mkdir -p /var/chroot-bind/bin /var/chroot-bind/dev /var/chroot-bind/etc \
|
|||
/var/chroot-bind/var/log /var/chroot-bind/var/run/named \
|
||||
/var/chroot-bind/run/named /var/chroot-bind/usr/share/dns
|
||||
|
||||
chmod 750 /var/chroot-bind
|
||||
|
||||
# for conf
|
||||
if [ ! -h "/etc/bind" ]; then
|
||||
mv /etc/bind/ /var/chroot-bind/etc/
|
||||
|
|
Loading…
Reference in a new issue