summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Marschall <peter@adpm.de>2013-08-29 14:11:18 -0600
committerLaMont Jones <lamont@debian.org>2013-08-29 14:11:18 -0600
commitbcb67dab656f9cd11ef7ebf67f6e3284ac05edd5 (patch)
tree714fac2acc9872af0bdc24d058e543104c1c8a4a
parent08c77ad214b93bf0004b38be3e4e71a8088a52fb (diff)
downloadbind9-bcb67dab656f9cd11ef7ebf67f6e3284ac05edd5.tar.gz
If rndc.conf exists, skip creation of rndc.key
Addresses-Debian-Bug: 620394 Signed-off-by: LaMont Jones <lamont@debian.org>
-rw-r--r--debian/bind9.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/bind9.postinst b/debian/bind9.postinst
index 01ca6119..61ea486d 100644
--- a/debian/bind9.postinst
+++ b/debian/bind9.postinst
@@ -19,7 +19,7 @@ if [ "$1" = configure ]; then
chmod 775 /var/lib/bind
fi
- if [ ! -s /etc/bind/rndc.key ]; then
+ if [ ! -s /etc/bind/rndc.key ] && [ ! -s /etc/bind/rndc.conf ]; then
rndc-confgen -r /dev/urandom -a
fi