summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh')
-rw-r--r--meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh b/meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh
new file mode 100644
index 0000000000..633e29c0e6
--- /dev/null
+++ b/meta/recipes-connectivity/bind/bind-9.16.24/generate-rndc-key.sh
@@ -0,0 +1,8 @@
1#!/bin/sh
2
3if [ ! -s /etc/bind/rndc.key ]; then
4 echo -n "Generating /etc/bind/rndc.key:"
5 /usr/sbin/rndc-confgen -a -b 512
6 chown root:bind /etc/bind/rndc.key
7 chmod 0640 /etc/bind/rndc.key
8fi