Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
[scaleway cloud] Fix getting ip address of machine
Browse files Browse the repository at this point in the history
  • Loading branch information
phhusson committed Oct 1, 2019
1 parent cc8280d commit d3d75ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud/scaleway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit d3d75ff

Please sign in to comment.