summaryrefslogtreecommitdiffstats
path: root/share/scripts/debconf.d/0003-debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-26 09:45:46 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-03 11:37:20 +0000
commitf1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd (patch)
tree30fbfd40628a75176686835bebeffdbf8584125e /share/scripts/debconf.d/0003-debconf
parentUsing .cfg suffix for preseed files of debconf script for consistency. (diff)
downloadcompute-tools-f1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd.tar.xz
compute-tools-f1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd.zip
Adding auto option to set automatic start in debconf script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/scripts/debconf.d/0003-debconf')
-rwxr-xr-xshare/scripts/debconf.d/0003-debconf13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf
index a1cab20..baf6879 100755
--- a/share/scripts/debconf.d/0003-debconf
+++ b/share/scripts/debconf.d/0003-debconf
@@ -1042,6 +1042,19 @@ Internal_options ()
echo "HOST_COMMAND=\"${HOST_COMMAND}\"" >> "${DEBCONF_TMPDIR}/debconf.default"
+ if db_get cnt-debconf/auto
+ then
+ CNT_AUTO="${RET:-FQDN}" # string (w/o empty)
+
+ case "${CNT_AUTO}" in
+ FQDN)
+ CNT_AUTO="$(hostname -f)"
+ ;;
+ esac
+ fi
+
+ echo "CNT_AUTO=\"${CNT_AUTO}\"" >> "${DEBCONF_TMPDIR}/debconf.default"
+
if db_get cnt-debconf/bind
then
BIND="${RET}" # string (w/ empty)