bind: Group accessibility for /var/chroot-bind

This commit is contained in:
David Prevot 2023-11-13 10:36:29 +01:00
parent 7ad55027da
commit 9cedf84dae

View file

@ -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/