diff options
Diffstat (limited to '')
-rw-r--r-- | debian/open-infrastructure-ddns-client.config | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/open-infrastructure-ddns-client.config b/debian/open-infrastructure-ddns-client.config new file mode 100644 index 0000000..0c97be5 --- /dev/null +++ b/debian/open-infrastructure-ddns-client.config @@ -0,0 +1,50 @@ +#!/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 |