From c3efbacd9d6d95a970a267a462aca6051f6b6c0b Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Tue, 26 Sep 2023 20:42:12 +0200 Subject: [PATCH] hotfix(ubuntu) correct azure-cli installation method to support package increments (#826) Signed-off-by: Damien Duportal --- provisioning/ubuntu-provision.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/provisioning/ubuntu-provision.sh b/provisioning/ubuntu-provision.sh index f37cf0726..5a0f03001 100755 --- a/provisioning/ubuntu-provision.sh +++ b/provisioning/ubuntu-provision.sh @@ -396,11 +396,10 @@ function install_azurecli() { curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null chmod go+r /etc/apt/keyrings/microsoft.gpg # Add the Azure CLI software repository - az_repo=$(lsb_release -cs) - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ ${az_repo} main" | tee /etc/apt/sources.list.d/azure-cli.list + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/azure-cli.list # Update repository information and install the azure-cli package apt-get update --quiet - apt-get install --yes --no-install-recommends azure-cli="${AZURECLI_VERSION}-1~${az_repo}" + apt-get install --yes --no-install-recommends azure-cli="${AZURECLI_VERSION}*" } ## Ensure that the GitHub command line (`gh`) is installed