From 0c0af47317c54473237050978ab91a8454b8ba53 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:06:48 +0200 Subject: [PATCH] [ubuntu20] Pin aliyun to 3.0.174 (#8109) --- images/linux/scripts/installers/aliyun-cli.sh | 10 +++++++++- images/linux/toolsets/toolset-2004.json | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/aliyun-cli.sh b/images/linux/scripts/installers/aliyun-cli.sh index 63b98ecad..756b86d39 100644 --- a/images/linux/scripts/installers/aliyun-cli.sh +++ b/images/linux/scripts/installers/aliyun-cli.sh @@ -5,10 +5,18 @@ ################################################################################ # Source the helpers for use with the script +source $HELPER_SCRIPTS/os.sh source $HELPER_SCRIPTS/install.sh # Install Alibaba Cloud CLI -downloadUrl="https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz" +# Pin tool version on ubuntu20 due to issues with GLIBC_2.32 not available +if isUbuntu20; then + toolsetVersion=$(get_toolset_value '.aliyunCli.version') + downloadUrl="https://github.com/aliyun/aliyun-cli/releases/download/v$toolsetVersion/aliyun-cli-linux-$toolsetVersion-amd64.tgz" +else + downloadUrl="https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz" +fi + download_with_retries $downloadUrl "/tmp" tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz mv aliyun /usr/local/bin diff --git a/images/linux/toolsets/toolset-2004.json b/images/linux/toolsets/toolset-2004.json index 629d766ab..829b5475d 100644 --- a/images/linux/toolsets/toolset-2004.json +++ b/images/linux/toolsets/toolset-2004.json @@ -361,5 +361,8 @@ }, "pwsh": { "version": "7.2" + }, + "aliyunCli": { + "version": "3.0.174" } }