build VMs have a nicer hostname (dates have dots in them that get interpreted as...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 15:17:30 +0000 (16:17 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 5 Feb 2014 15:17:30 +0000 (16:17 +0100)
lbuild-initvm.sh

index de78466..34c9115 100755 (executable)
@@ -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