summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-dehydrated-tools.config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-20 16:50:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-20 16:50:37 +0000
commitb7842b50a00cbf7b95b9acafd8694f0e310c7822 (patch)
treeb9c692b5453105e6a4b68b3f4e108f98b30e088b /debian/open-infrastructure-dehydrated-tools.config
parentAdding upstream version 20231120. (diff)
downloadopen-infrastructure-service-tools-b7842b50a00cbf7b95b9acafd8694f0e310c7822.tar.xz
open-infrastructure-service-tools-b7842b50a00cbf7b95b9acafd8694f0e310c7822.zip
Adding debian version 20231120-1.debian/20231120-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/open-infrastructure-dehydrated-tools.config')
-rw-r--r--debian/open-infrastructure-dehydrated-tools.config85
1 files changed, 85 insertions, 0 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.config b/debian/open-infrastructure-dehydrated-tools.config
new file mode 100644
index 0000000..646f67f
--- /dev/null
+++ b/debian/open-infrastructure-dehydrated-tools.config
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+CONFFILE="/etc/dehydrated/conf.d/config.sh"
+
+if [ -e "${CONFFILE}" ]
+then
+ . ${CONFFILE} || true
+
+ db_set open-infrastructure-dehydrated-tools/auto-cleanup "${AUTO_CLEANUP}"
+ db_set open-infrastructure-dehydrated-tools/ca "${CA}"
+ db_set open-infrastructure-dehydrated-tools/challengetype "${CHALLENGETYPE}"
+ db_set open-infrastructure-dehydrated-tools/contact-email "${CONTACT_EMAIL}"
+ db_set open-infrastructure-dehydrated-tools/key-algo "${KEY_ALGO}"
+ db_set open-infrastructure-dehydrated-tools/ocsp-fetch "${OCSP_FETCH}"
+ db_set open-infrastructure-dehydrated-tools/ocsp-must-staple "${OCSP_MUST_STAPLE}"
+ db_set open-infrastructure-dehydrated-tools/preferred-chain "${PREFERRED_CHAIN}"
+fi
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/auto-cleanup "${AUTO_CLEANUP}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/ca "${CA}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/challengetype "${CHALLENGETYPE}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/contact-email "${CONTACT_EMAIL}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/key-algo "${KEY_ALGO}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/ocsp-fetch "${OCSP_FETCH}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/ocsp-must-staple "${OCSP_MUST_STAPLE}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/preferred-chain "${PREFERRED_CHAIN}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/basedir "${BASEDIR}" || 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/domains "${DOMAINS}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/tsig "${TSIG}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/register "${REGISTER}" || true
+db_go
+
+db_settitle open-infrastructure-dehydrated-tools/title
+db_input low open-infrastructure-dehydrated-tools/run "${RUN}" || true
+db_go
+
+db_stop