1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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:
Doug Barton 2004-09-26 07:01:56 +00:00
parent 862e463a75
commit 85aca891e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135810

View File

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