aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unbound-adblock/Dockerfile2
-rwxr-xr-xsrc/unbound-adblock/bin/entrypoint.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unbound-adblock/Dockerfile b/src/unbound-adblock/Dockerfile
index 196a37c..bd5939f 100644
--- a/src/unbound-adblock/Dockerfile
+++ b/src/unbound-adblock/Dockerfile
@@ -3,6 +3,6 @@ FROM public.ecr.aws/x2w2w0z4/base:${BASE_VER}
COPY bin/entrypoint.sh /usr/bin/entrypoint.sh
COPY etc/unbound.base.conf /etc/unbound/unbound.conf.d/unbound.base.conf
-RUN install_deb unbound
+RUN install_deb unbound unbound-anchor
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
diff --git a/src/unbound-adblock/bin/entrypoint.sh b/src/unbound-adblock/bin/entrypoint.sh
index 24a18a7..b9dd19d 100755
--- a/src/unbound-adblock/bin/entrypoint.sh
+++ b/src/unbound-adblock/bin/entrypoint.sh
@@ -16,7 +16,7 @@ fi
# Update root trust anchor
log "Updating root trust anchor..."
-if /usr/libexec/unbound-helper root_trust_anchor_update; then
+if unbound-anchor -a /var/lib/unbound/root.key; then
log "Root trust anchor updated successfully"
else
log "ERROR: Root trust anchor update failed"