aports/main/bind/bind.post-install
Nico Schottelius 955e379151 main/bind: add support for "reload"
- Implement function in init script
- Generate key on post-install

Closes !540
2019-11-02 13:39:25 +00:00

8 lines
179 B
Bash

#!/bin/sh
# Generate key required for reload to work -> creates /etc/bind/rndc.key
if ! [ -f /etc/bind/rndc.key ]; then
rndc-confgen -a
chown named:named /etc/bind/rndc.key
fi