diff options
| author | Nico Schottelius <nico@nico-notebook.schottelius.org> | 2019-10-19 15:36:18 +0200 |
|---|---|---|
| committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-11-02 13:39:25 +0000 |
| commit | 955e379151f059e8b6dc84758ebaa75b082ce6cb (patch) | |
| tree | f384b78845bfda7a5d8f6fbf516faff4f3cb6d88 /main/bind/bind.post-install | |
| parent | 058a07c4a6dff952d5f731bdb5198108f1f16f93 (diff) | |
| download | aports-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-install | 7 |
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 |
