summaryrefslogtreecommitdiff
path: root/net-dns/bind/files/generate-rndc-key.sh
blob: 8314d77cd68c74140b88b3b9aec0889e4327866d (plain)
1
2
3
4
5
6
7
#!/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