#!/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