ddns/docker/powerdns/entrypoint.sh
Philipp Böhm e82621e153 First partial working docker setup
add initial version of docker setup

add configuration via environment variables

remove override file

support docker-compose.override.yml

add up2date pdns container
2017-07-02 20:54:54 +02:00

9 lines
No EOL
267 B
Bash

#!/usr/bin/env bash
CONFIG_FILE=/etc/powerdns/pdns.conf
sed -i 's/{{DDNS_DOMAIN}}/'"${DDNS_DOMAIN}"'/g' ${CONFIG_FILE}
sed -i 's/{{DDNS_SOA_DOMAIN}}/'"${DDNS_SOA_DOMAIN}"'/g' ${CONFIG_FILE}
sed -i 's/{{DDNS_VERBOSE}}/'"${DDNS_VERBOSE}"'/g' ${CONFIG_FILE}
exec "$@"