aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/bind.post-install
diff options
context:
space:
mode:
authorNico Schottelius <nico@nico-notebook.schottelius.org>2019-10-19 15:36:18 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2019-11-02 13:39:25 +0000
commit955e379151f059e8b6dc84758ebaa75b082ce6cb (patch)
treef384b78845bfda7a5d8f6fbf516faff4f3cb6d88 /main/bind/bind.post-install
parent058a07c4a6dff952d5f731bdb5198108f1f16f93 (diff)
downloadaports-955e379151f059e8b6dc84758ebaa75b082ce6cb.tar.bz2
aports-955e379151f059e8b6dc84758ebaa75b082ce6cb.tar.xz
main/bind: add support for "reload"
- Implement function in init script - Generate key on post-install Closes !540
Diffstat (limited to 'main/bind/bind.post-install')
-rw-r--r--main/bind/bind.post-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/bind/bind.post-install b/main/bind/bind.post-install
new file mode 100644
index 0000000000..aa1b7a85e5
--- /dev/null
+++ b/main/bind/bind.post-install
@@ -0,0 +1,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