PKGBUILDs/extra/bind/bind.install

11 lines
263 B
Text
Raw Normal View History

2016-10-09 15:46:47 +00:00
post_install() {
# create an rndc.key if it doesn't already exist
if [[ ! -s etc/rndc.key ]]; then
rndc-confgen -r /dev/urandom -b 256 | head -n 5 >>etc/rndc.key
chown root:named etc/rndc.key
chmod 640 etc/rndc.key
fi
}
# vim:set ts=2 sw=2 et: