diff options
author | crupest <crupest@outlook.com> | 2022-11-23 20:40:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-23 20:40:34 +0800 |
commit | c503007d417032c9a598adc049cca4caae2c2281 (patch) | |
tree | dd4438376c8c96df4355a96bd3860795c2db5566 /docker/auto-backup/install-coscli.bash | |
parent | f1802ee3812520451b61b6348231c4a4450c0f24 (diff) | |
download | crupest-c503007d417032c9a598adc049cca4caae2c2281.tar.gz crupest-c503007d417032c9a598adc049cca4caae2c2281.tar.bz2 crupest-c503007d417032c9a598adc049cca4caae2c2281.zip |
Use coscmd instead of coscli.
Diffstat (limited to 'docker/auto-backup/install-coscli.bash')
-rwxr-xr-x | docker/auto-backup/install-coscli.bash | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/docker/auto-backup/install-coscli.bash b/docker/auto-backup/install-coscli.bash deleted file mode 100755 index d3a45b0..0000000 --- a/docker/auto-backup/install-coscli.bash +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -set -e - -# Check I'm root. -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root" 1>&2 - exit 1 -fi - -download_url=$(curl -s https://api.github.com/repos/tencentyun/coscli/releases/latest | jq -r ".assets[] | select(.name | test(\"coscli-linux\")) | .browser_download_url") - -curl -L -o /coscli "$download_url" - -chmod +x /coscli - -/coscli --version |