From 850a1e68a62b85a7064f932e62d8cc8ab59fb11d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 28 Nov 2015 13:19:39 +0100 Subject: [PATCH] Create certificates for unbound-control --- unbound.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unbound.sh b/unbound.sh index e3280d0..0d9538e 100755 --- a/unbound.sh +++ b/unbound.sh @@ -87,4 +87,8 @@ mkdir -p -m 700 /opt/unbound/etc/unbound/var && \ chown _unbound:_unbound /opt/unbound/etc/unbound/var && \ /opt/unbound/sbin/unbound-anchor -a /opt/unbound/etc/unbound/var/root.key +if [ ! -f /opt/unbound/etc/unbound/unbound_control.pem ]; then + /opt/unbound/sbin/unbound-control-setup +fi + exec /opt/unbound/sbin/unbound