It's not necessary to create an rndc.key file if the user already
has an rndc.conf file. Submitted by: Sergey Mokryshev <mokr@mokr.net>
This commit is contained in:
parent
862e463a75
commit
85aca891e7
@ -71,7 +71,8 @@ named_precmd()
|
||||
fi
|
||||
|
||||
# Create an rndc.key file for the user if none exists
|
||||
if [ ! -f "${named_chrootdir}/etc/namedb/rndc.key" ]; then
|
||||
if [ ! -f "${named_chrootdir}/etc/namedb/rndc.key" -a \
|
||||
! -f "${named_chrootdir}/etc/namedb/rndc.conf" ]; then
|
||||
rndc-confgen -a -b256 ${confgen_chroot}
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user