diff options
-rw-r--r-- | meta/recipes-connectivity/bind/bind/conf.patch | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/generate-rndc-key.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/bind/bind/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch index 57dbd4e155..aad345f9fc 100644 --- a/meta/recipes-connectivity/bind/bind/conf.patch +++ b/meta/recipes-connectivity/bind/bind/conf.patch | |||
@@ -277,7 +277,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d | |||
277 | + modprobe capability >/dev/null 2>&1 || true | 277 | + modprobe capability >/dev/null 2>&1 || true |
278 | + if [ ! -f /etc/bind/rndc.key ]; then | 278 | + if [ ! -f /etc/bind/rndc.key ]; then |
279 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 279 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom |
280 | + chown 0640 /etc/bind/rndc.key | 280 | + chmod 0640 /etc/bind/rndc.key |
281 | + fi | 281 | + fi |
282 | + if [ -f /var/run/named/named.pid ]; then | 282 | + if [ -f /var/run/named/named.pid ]; then |
283 | + ps `cat /var/run/named/named.pid` > /dev/null && exit 1 | 283 | + ps `cat /var/run/named/named.pid` > /dev/null && exit 1 |
diff --git a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh index c2e88bf127..db201270fa 100644 --- a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh +++ b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh | |||
@@ -3,5 +3,5 @@ | |||
3 | if [ ! -s /etc/bind/rndc.key ]; then | 3 | if [ ! -s /etc/bind/rndc.key ]; then |
4 | echo -n "Generating /etc/bind/rndc.key:" | 4 | echo -n "Generating /etc/bind/rndc.key:" |
5 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 5 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom |
6 | chown 0640 /etc/bind/rndc.key | 6 | chmod 0640 /etc/bind/rndc.key |
7 | fi | 7 | fi |