From d3d75ffe9bdd7cbe9cbc7bfda70c985ceaf3beab Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 1 Oct 2019 13:37:02 +0200 Subject: [PATCH] [scaleway cloud] Fix getting ip address of machine --- cloud/scaleway.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud/scaleway.sh b/cloud/scaleway.sh index 2293e18e..af2c8368 100644 --- a/cloud/scaleway.sh +++ b/cloud/scaleway.sh @@ -35,7 +35,9 @@ echo "... also called $machine" #scw attach --no-stdin "$name" & scw exec -w "$name" echo "Good morning, now building" -machine_ip="$(scw inspect server:phh-treble-3976258d |jq -r '.[0]|.public_ip.address')" +rm -f ~/.scw-cache.db +machine_ip="$(scw inspect server:$machine |jq -r '.[0]|.public_ip.address')" +ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "root@$machine_ip" echo "Tested ssh successfully" run_script 'export DEBIAN_FRONTEND=noninteractive && dpkg --add-architecture i386 && \ apt-get update && \ (yes "" | apt-get install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" \