gentoo/net-dns/bind/files/generate-rndc-key.sh

8 lines
183 B
Bash
Raw Normal View History

2022-11-28 13:35:22 +01:00
#!/bin/bash
if [ ! -s /etc/bind/rndc.key ]; then
/usr/sbin/rndc-confgen -a > /dev/null 2>&1 || exit 1
chmod 640 /etc/bind/rndc.key
chown root.named /etc/bind/rndc.key
fi