From fb999e7f81afd12f010e83dee3550270663fcd96 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Feb 2014 16:17:30 +0100 Subject: [PATCH] build VMs have a nicer hostname (dates have dots in them that get interpreted as domain...) --- lbuild-initvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index de784660..34c9115d 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -921,7 +921,7 @@ function main () { if [ -n "$BUILD_MODE" ] ; then # we can now set GUEST_HOSTNAME safely - [ -z "$GUEST_HOSTNAME" ] && GUEST_HOSTNAME=$lxc + [ -z "$GUEST_HOSTNAME" ] && GUEST_HOSTNAME=$(echo $lxc | sed -e 's,\.,-,g') else # as this command can be used in other contexts, not specifying # a repo is considered a warning -- 2.43.0