Skip to content

Commit

Permalink
Fix Workspaces install on Ubuntu 24
Browse files Browse the repository at this point in the history
  • Loading branch information
iainelder committed Dec 8, 2024
1 parent ded7c8d commit 1313b92
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions programs/workspacesclient/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@ wget -q -O - https://workspaces-client-linux-public-key.s3-us-west-2.amazonaws.c
| sudo gpg --dearmor --yes --output "$key"

source /etc/os-release

echo "deb [arch=amd64 signed-by=$key] https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu $VERSION_CODENAME main" \
case "$VERSION_ID" in
"24.04")
# The apt repo server gives a 403 error for "noble".
codename="jammy"
;;
*):
codename="$VERSION_CODENAME"
;;
esac

echo "deb [arch=amd64 signed-by=$key] https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu $codename main" \
| sudo sponge /etc/apt/sources.list.d/amazon-workspaces-clients.list

sudo apt-get update
Expand Down

0 comments on commit 1313b92

Please sign in to comment.