Skip to content

Commit 736abe3

Browse files
josevalimjonatanklosko
authored andcommitted
Use wget instead of curl, closes #3020 (#3022)
1 parent 4329239 commit 736abe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rel/server/env.sh.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
export LIVEBOOK_NODE="${FLY_APP_NAME}-${deployment}@${FLY_PRIVATE_IP}"
1919
fi
2020
elif [ "$LIVEBOOK_CLUSTER" = "auto" ] && [ ! -z "$ECS_CONTAINER_METADATA_URI" ]; then
21-
metadata="$(curl --silent $ECS_CONTAINER_METADATA_URI)"
21+
metadata="$(wget --quiet --output-document=- $ECS_CONTAINER_METADATA_URI)"
2222
machine_ip="$(echo $metadata | $RELEASE_ROOT/bin/livebook eval 'IO.read(:stdio, :eof) |> JSON.decode!() |> Map.fetch!("Networks") |> hd() |> Map.fetch!("IPv4Addresses") |> hd() |> IO.write()')"
2323
image_id="$(echo $metadata | $RELEASE_ROOT/bin/livebook eval 'IO.read(:stdio, :eof) |> JSON.decode!() |> Map.fetch!("ImageID") |> IO.write()')"
2424

0 commit comments

Comments
 (0)