Skip to content

Commit 37c2f84

Browse files
authored
Merge pull request #15 from kubenow/fix/azure_new_gpg
Updating azure-cli new ubuntu gpg
2 parents 4a5417e + 2411b4e commit 37c2f84

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

az_clean_images.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

6-
# Installing Azure command-line client
7-
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
8-
6+
# Installing Azure command-line client here as used both in cleaning and cron_job scripts
7+
AZ_REPO=$(lsb_release -cs)
8+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
99
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
10+
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
1011
sudo apt-get -qq install apt-transport-https -y
1112
sudo apt-get -qq update && sudo apt-get -qq install azure-cli -y
1213

0 commit comments

Comments
 (0)