From a7fea4cfce73c8d1d271d8d0bfcf7b0b0802ad47 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 23 Feb 2019 17:17:35 +0100 Subject: Using hostname fallback if FQDN is not set. Signed-off-by: Daniel Baumann --- lib/container/create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/container/create') diff --git a/lib/container/create b/lib/container/create index 469ba4d..43cad9b 100755 --- a/lib/container/create +++ b/lib/container/create @@ -178,7 +178,7 @@ EOF ;; esac -CNT_CONTAINER_SERVER="${CNT_CONTAINER_SERVER:-$(hostname -f)}" +CNT_CONTAINER_SERVER="${CNT_CONTAINER_SERVER:-$(hostname -f 2> /dev/null || hostname)}" # Pre hooks for FILE in "${HOOKS}/pre-${COMMAND}".* "${HOOKS}/${NAME}.pre-${COMMAND}" -- cgit v1.2.3