blob: 0c97be570a9b4c11cffd7a3b54b0ad4b64c99443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
|