nsd-docker/entrypoint.sh

13 lines
200 B
Bash

#!/usr/bin/env bash
set -e
if [ ! -f "/etc/nsd/nsd.conf" ]; then
cp /tmp/nsd.conf.example /etc/nsd/nsd.conf
fi
if [ ! -f "/etc/nsd/nsd_control.pem" ]; then
nsd-control-setup
fi
exec nsd -d