mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04: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:
parent
862e463a75
commit
85aca891e7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue