diff options
| author | Max Resnick <max@ofmax.li> | 2025-04-19 21:27:09 -0700 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-04-19 21:27:09 -0700 |
| commit | 1e8bb139121f22b1e7672e0f3ec54953eb3a7885 (patch) | |
| tree | 944f553d19a3111526c9d01ad795f28caba426a8 /src/unbound-adblock/bin | |
| parent | d97dbb45fc499f0e7b42445c240acf5070262d43 (diff) | |
| download | grumpy-containers-1e8bb139121f22b1e7672e0f3ec54953eb3a7885.tar.gz | |
chore: rename
Diffstat (limited to 'src/unbound-adblock/bin')
| -rwxr-xr-x | src/unbound-adblock/bin/entrypoint.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/unbound-adblock/bin/entrypoint.sh b/src/unbound-adblock/bin/entrypoint.sh new file mode 100755 index 0000000..d1b4b3a --- /dev/null +++ b/src/unbound-adblock/bin/entrypoint.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -e + +log() { + echo "[$(date +'%Y-%m-%d %H:%M:%S')] $*" +} + +# Setup chroot environment +log "Setting up chroot environment..." +if /usr/lib/unbound/package-helper chroot_setup; then + log "Chroot setup completed successfully" +else + log "ERROR: Chroot setup failed" + exit 1 +fi + +# Update root trust anchor +log "Updating root trust anchor..." +if /usr/lib/unbound/package-helper root_trust_anchor_update; then + log "Root trust anchor updated successfully" +else + log "ERROR: Root trust anchor update failed" + exit 1 +fi + +# Start unbound in debug mode +log "Starting unbound daemon..." +exec /usr/sbin/unbound -d -p $DOPTS |