nsd-docker/entrypoint.sh
Jochen Welzel 729494e58f
All checks were successful
continuous-integration/drone/push Build is passing
add openssl and nsd-control-setup
2020-04-20 15:03:25 +02:00

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