#!/bin/sh set -e . /usr/share/debconf/confmodule CONFFILE="/etc/network-tools/config/ddns-client.conf" if [ -e "${CONFFILE}" ] then . ${CONFFILE} || true db_set open-infrastructure-ddns-client/nameservers "${NAMESERVERS}" db_fset open-infrastructure-ddns-client/nameservers seen false || true db_go db_set open-infrastructure-ddns-client/zone "${ZONE}" db_fset open-infrastructure-ddns-client/zone seen false || true db_go db_set open-infrastructure-ddns-client/record "${RECORD}" db_fset open-infrastructure-ddns-client/record seen false || true db_go db_set open-infrastructure-ddns-client/ttl "${TTL}" db_fset open-infrastructure-ddns-client/ttl seen false || true db_go fi db_settitle open-infrastructure-ddns-client/title db_input low open-infrastructure-ddns-client/nameservers "${NAMESERVERS}" || true db_go db_settitle open-infrastructure-ddns-client/title db_input low open-infrastructure-ddns-client/zone "${ZONE}" || true db_go db_settitle open-infrastructure-ddns-client/title db_input low open-infrastructure-ddns-client/record "${RECORD}" || true db_go db_settitle open-infrastructure-ddns-client/title db_input low open-infrastructure-ddns-client/ttl "${TTL}" || true db_go db_settitle open-infrastructure-ddns-client/title db_input low open-infrastructure-ddns-client/tsig "${TSIG}" || true db_go db_stop