Skip to content

Commit 8289a55

Browse files
authored
Merge pull request #6101 from mysteriumnetwork/fix/awsclisetup
Use awscli v2
2 parents b6a47d3 + f251532 commit 8289a55

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/s3

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/bash
22
set -e
33

4-
PATH=$HOME/.local/bin:$PATH
4+
AWS_TARGET_VERSION='2.22.34'
55

6-
if ! [ -x "$(command -v aws)" ]; then
7-
pip install --user awscli
6+
if ! aws --version 2>/dev/null | grep -q "$AWS_TARGET_VERSION"; then
7+
curl -sS "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_TARGET_VERSION}.zip" -o awscliv2.zip && \
8+
unzip -q awscliv2.zip && \
9+
sudo ./aws/install --update >/dev/null 2>&1 && \
10+
rm -rf awscliv2.zip aws
811
fi
912

1013
aws --region hel1 --endpoint-url https://hel1.your-objectstorage.com s3 "$@"

0 commit comments

Comments
 (0)