use $(hostname) rather than localhost
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 2 Feb 2013 06:32:37 +0000 (07:32 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 2 Feb 2013 06:32:37 +0000 (07:32 +0100)
or build setup is to have ssh Listen on a specific address

vbuild-nightly.sh

index 622a420..2479441 100755 (executable)
@@ -128,7 +128,7 @@ function failure() {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
     if test -z "$WEBLOG" ; then
-       WEBHOST=localhost
+       WEBHOST=$(hostname)
        WEBPATH=/tmp
        WEBBASE=/tmp/vbuild-early-$(date +%Y-%m-%d)
        WEBLOG=/tmp/vbuild-early-$(date +%Y-%m-%d).log.txt
@@ -157,7 +157,7 @@ function success () {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
     if test -z "$WEBLOG" ; then
-       WEBHOST=localhost
+       WEBHOST=$(hostname)
        WEBPATH=/tmp
        WEBLOG=/tmp/vbuild-early-$(date +%Y-%m-%d).log.txt
     fi