From 2f10c858ea8bc579414b3a8d8b6eced4a94a5114 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 12 Sep 2021 11:30:45 +0200 Subject: Adding debian packaging. Signed-off-by: Daniel Baumann --- debian/open-infrastructure-ddns-client.config | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 debian/open-infrastructure-ddns-client.config (limited to 'debian/open-infrastructure-ddns-client.config') 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 -- cgit v1.2.3