blob: 28c38edc529ca4543bfc9de84d811b94f4ebb4fe (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#!/bin/sh
set -e
for FILE in /etc/dehydrated/config /etc/dehydrated/conf.d/*.sh
do
if [ -e "${FILE}" ]
then
. ${FILE} || true
fi
done
. /usr/share/debconf/confmodule
if [ -n "${CA}" ]
then
db_set open-infrastructure-dehydrated-tools/ca "${CA}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/ca || true
db_go
if [ -n "${AUTO_CLEANUP}" ]
then
db_set open-infrastructure-dehydrated-tools/auto-cleanup "${AUTO_CLEANUP}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/auto-cleanup || true
db_go
if [ -n "${CHALLENGETYPE}" ]
then
db_set open-infrastructure-dehydrated-tools/challengetype "${CHALLENGETYPE}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/challengetype || true
db_go
if [ -n "${CONTACT_EMAIL}" ]
then
db_set open-infrastructure-dehydrated-tools/contact-email "${CONTACT_EMAIL}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/contact-email || true
db_go
if [ -e /usr/share/dehydrated/hooks ]
then
HOOKS_CHOICES="$(cd /usr/share/dehydrated/hooks && find -maxdepth 1 -not -type d -printf '%P\n' | sort)"
db_subst open-infrastructure-dehydrated-tools/hooks HOOKS_CHOICES "ALL, $(echo ${HOOKS_CHOICES} | sed -e 's| |, |g')"
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/hooks || true
db_go
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/basedir || true
db_go
if ! ls /var/lib/dehydrated/accounts/*/account_key.pem > /dev/null 2>&1
then
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/register || true
db_go
fi
if [ -n "${OCSP_FETCH}" ]
then
db_set open-infrastructure-dehydrated-tools/ocsp-fetch "${OCSP_FETCH}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/ocsp-fetch || true
db_go
if [ -n "${OCSP_MUST_STAPLE}" ]
then
db_set open-infrastructure-dehydrated-tools/ocsp-must-staple "${OCSP_MUST_STAPLE}"
fi
db_settitle open-infrastructure-dehydrated-tools/title
db_input low open-infrastructure-dehydrated-tools/ocsp-must-staple || true
db_go
db_stop
|