mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
14 lines
331 B
Text
14 lines
331 B
Text
|
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:
|