Skip to content

Commit 2aa21ff

Browse files
committed
Solana. Bug fix for AWS CLI on x86
1 parent 3be882b commit 2aa21ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/solana/lib/assets/user-data-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ INSTANCE_ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -s http://169.254.169.2
3131
apt-get -yqq update
3232
apt-get -yqq install jq unzip python3-pip chrony
3333

34+
ARCH=$(uname -m)
35+
3436
if [ "$ARCH" == "x86_64" ]; then
3537
CW_AGENT_BINARY_URI=https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
3638
else
@@ -39,8 +41,6 @@ fi
3941

4042
cd /opt || exit 1
4143

42-
ARCH=$(uname -m)
43-
4444
echo "Intalling AWS CLI"
4545
snap install aws-cli --classic
4646

0 commit comments

Comments
 (0)