void-packages/srcpkgs/bind/INSTALL

18 lines
443 B
Plaintext
Raw Normal View History

2012-01-31 13:52:16 +01:00
case "${ACTION}" in
post)
touch var/log/named.log
chown root:named var/log/named.log
chmod 0770 var/log/named.log
2015-06-04 00:26:18 +02:00
2012-01-31 13:52:16 +01:00
# create an rndc.key if it doesn't already exist
if [ ! -s etc/named/rndc.key ]; then
2015-06-04 00:26:18 +02:00
usr/bin/rndc-confgen -r /dev/urandom -b 256 | \
2012-01-31 13:52:16 +01:00
head -n 5 >> etc/named/rndc.key
chown root:named etc/named/rndc.key
chmod 644 etc/named/rndc.key
fi
chown root:named etc/named/named.conf
chown -R root:named var/named
;;
esac