blob: a38c41503372db64418fbdd96d358c9ea1aee7f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
systemd-sysusers bind.conf
systemd-tmpfiles --create bind.conf
# 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:
|