summaryrefslogtreecommitdiffstats
path: root/share/scripts/debconf.d/0003-debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-02-23 16:17:35 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-02-23 16:27:56 +0000
commita7fea4cfce73c8d1d271d8d0bfcf7b0b0802ad47 (patch)
tree18aacb25efcf8376f31f97d34cf664b21ec83c3b /share/scripts/debconf.d/0003-debconf
parentHarmonizing debconf values for container debconf create script. (diff)
downloadcompute-tools-a7fea4cfce73c8d1d271d8d0bfcf7b0b0802ad47.tar.xz
compute-tools-a7fea4cfce73c8d1d271d8d0bfcf7b0b0802ad47.zip
Using hostname fallback if FQDN is not set.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xshare/scripts/debconf.d/0003-debconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/scripts/debconf.d/0003-debconf b/share/scripts/debconf.d/0003-debconf
index 9183538..843d0b4 100755
--- a/share/scripts/debconf.d/0003-debconf
+++ b/share/scripts/debconf.d/0003-debconf
@@ -1092,7 +1092,7 @@ Internal_options ()
case "${CNT_CONTAINER_SERVER}" in
FQDN)
- CNT_CONTAINER_SERVER="$(hostname -f)"
+ CNT_CONTAINER_SERVER="$(hostname -f 2> /dev/null || hostname)"
;;
esac