Skip to content

Commit

Permalink
some minor fixes to new_droplet
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jun 28, 2024
1 parent ee874eb commit 6224dc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automation/new_droplet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ droplet_id=$(doctl compute droplet create \
--region tor1 \
--enable-monitoring \
--ssh-keys "$SSH_KEYS" \
"$1" --output json | jq -r '.droplet.id')
"$1" --output json | jq -r '.[0].id')



# Wait for the droplet to be active
echo "Waiting for droplet to be active..."
while true; do
status=$(doctl compute droplet get "$droplet_id" --output json | jq -r '.droplet.status')
status=$(doctl compute droplet get "$droplet_id" --output json | jq -r '.[0].status')
if [ "$status" = "active" ]; then
break
fi
sleep 5
sleep 2
done

# Get the public and private IP addresses, guaranteed to be at index zero as we limit names
Expand Down

0 comments on commit 6224dc8

Please sign in to comment.