summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-container-tools.config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-02-02 13:42:48 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-02-02 13:42:54 +0000
commit3210f9a20035a241d9c53e93cf99da5d313163eb (patch)
tree5883f9a3ea0fcdb2a53fa96c63f3ed2c46a811d5 /debian/open-infrastructure-container-tools.config
parentReleasing version 20221223. (diff)
downloadcompute-tools-3210f9a20035a241d9c53e93cf99da5d313163eb.tar.xz
compute-tools-3210f9a20035a241d9c53e93cf99da5d313163eb.zip
debian (FIXME)
Diffstat (limited to 'debian/open-infrastructure-container-tools.config')
-rw-r--r--debian/open-infrastructure-container-tools.config64
1 files changed, 64 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..90f690a
--- /dev/null
+++ b/debian/open-infrastructure-container-tools.config
@@ -0,0 +1,64 @@
+#!/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-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/config-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/debconf-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/hooks-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/keys-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/cache-directory || true
+db_go
+
+db_settitle open-infrastructure-container-tools/title
+db_input low open-infrastructure-container-tools/directory-permissions || 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