summaryrefslogtreecommitdiffstats
path: root/share/scripts/debconf.d
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-07-01 09:53:24 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-07-01 09:54:30 +0000
commit98e646a8fb214023ab99f661a6ad2550157c6b95 (patch)
tree0430656e1e16ec50b9eeede978c85e156a036d8a /share/scripts/debconf.d
parentReleasing debian version 20160615-2. (diff)
downloadopen-infrastructure-compute-tools-98e646a8fb214023ab99f661a6ad2550157c6b95.tar.xz
open-infrastructure-compute-tools-98e646a8fb214023ab99f661a6ad2550157c6b95.zip
Merging upstream version 20160701.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'share/scripts/debconf.d')
-rwxr-xr-xshare/scripts/debconf.d/0003-debconf14
1 files changed, 8 insertions, 6 deletions
diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf
index 05c9eb5..15a6a15 100755
--- a/share/scripts/debconf.d/0003-debconf
+++ b/share/scripts/debconf.d/0003-debconf
@@ -1045,14 +1045,16 @@ Internal_options ()
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
+ CNT_AUTO="${CNT_AUTO:-FQDN}"
+
+ case "${CNT_AUTO}" in
+ FQDN)
+ CNT_AUTO="$(hostname -f)"
+ ;;
+ esac
+
echo "CNT_AUTO=\"${CNT_AUTO}\"" >> "${DEBCONF_TMPDIR}/debconf.default"
if db_get cnt-debconf/bind