personal-dns/docker-entrypoint.sh

12 lines
258 B
Bash
Raw Normal View History

2018-05-09 15:23:04 +00:00
#!/usr/local/bin/dumb-init /bin/bash
set -euxo pipefail
# No influx credentials present, don't use metrics sender
[[ -n ${INFLUX_HOST:-} ]] ||
exec named -c /etc/bind/named.conf -g
# Start bind
bind-log-metrics <(
named -c /etc/bind/named.conf -g 2>&1
)