oops
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 3 Apr 2012 08:01:35 +0000 (10:01 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 3 Apr 2012 08:01:35 +0000 (10:01 +0200)
vbuild-init-lxc.sh

index 7ef8526..960006e 100755 (executable)
@@ -562,9 +562,10 @@ function setup_lxc() {
 
     echo $IP is up, waiting for ssh...
 
+    ssh_up=""
     for i in $(seq 1 10); do
         echo "ssh attempt $i ..."
-        ssh -o "StrictHostKeyChecking no" $IP 'uname -i' && break || :
+        ssh -o "StrictHostKeyChecking no" $IP 'uname -i' && { ssh_up=true; break ; } || :
        sleep 2
     done