summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-container-tools.config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-02-28 08:32:51 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-02-28 08:32:54 +0000
commit6cb71b84b2e6be147594015c4942891ee9e021e0 (patch)
tree0f41449089a8ce8e124b982cdd3b4752c034eb34 /debian/open-infrastructure-container-tools.config
parentAdding support for deriving IP interface addresses from DNS. (diff)
downloadcompute-tools-6cb71b84b2e6be147594015c4942891ee9e021e0.tar.xz
compute-tools-6cb71b84b2e6be147594015c4942891ee9e021e0.zip
DEBIAN
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'debian/open-infrastructure-container-tools.config')
-rw-r--r--debian/open-infrastructure-container-tools.config60
1 files changed, 60 insertions, 0 deletions
diff --git a/debian/open-infrastructure-container-tools.config b/debian/open-infrastructure-container-tools.config
new file mode 100644
index 0000000..0139c05
--- /dev/null
+++ b/debian/open-infrastructure-container-tools.config
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -e
+
+CONFFILES="/etc/compute-tools/container.conf /etc/compute-tools/container.conf.d/*.conf"
+
+. /usr/share/debconf/confmodule
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/machines || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/config || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/debconf || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/hooks || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/keys || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/cache || true
+db_go
+
+if [ -e /usr/share/compute-tools/build-scripts ]
+then
+ SCRIPT_CHOICES="$(cd /usr/share/compute-tools/build-scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)"
+ db_subst open-infrastructure-container-tools/build-script SCRIPT_CHOICES "$(echo ${SCRIPT_CHOICES} | sed -e 's| |, |g')"
+
+ db_settitle open-infrastructure-container-tools/title
+ db_input low open-infrastructure-container-tools/build-script || true
+ db_go
+fi
+
+for CONFFILE in ${CONFFILES}
+do
+ if [ -e "${CONFFILE}" ]
+ then
+ . ${CONFFILE} || true
+ fi
+done
+
+if [ -n "${IRK_TARGETS}" ]
+then
+ db_set open-infrastructure-container-tools/irc "${IRK_TARGETS}"
+fi
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/irc || true
+db_go
+
+db_stop