aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/bind.post-install
blob: aa1b7a85e59296e3c457dcdbe5b69914352a556b (plain)
1
2
3
4
5
6
7
#!/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