From f84df97c869b2761a300a61e58e4e4d74b308780 Mon Sep 17 00:00:00 2001 From: Jamil Date: Sat, 18 Jun 2022 10:52:46 -0400 Subject: [PATCH] Update install script to support Ubuntu 22.04 (#733) --- docs/docs/deploy/supported-platforms.md | 1 + scripts/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/deploy/supported-platforms.md b/docs/docs/deploy/supported-platforms.md index ca48e0702..0ec99c1fa 100644 --- a/docs/docs/deploy/supported-platforms.md +++ b/docs/docs/deploy/supported-platforms.md @@ -30,6 +30,7 @@ Firezone currently supports the following platforms: | Fedora 35 | `amd64` `arm64` | **Fully-supported** | See [Fedora Notes](#fedora-notes) | | Ubuntu 18.04 | `amd64` `arm64` | **Fully-supported** | See [Ubuntu 18.04 Notes](#ubuntu-1804-notes) | | Ubuntu 20.04 | `amd64` `arm64` | **Fully-supported** | Works as-is | +| Ubuntu 22.04 | `amd64` `arm64` | **Fully-supported** | Works as-is | | openSUSE Leap 15.3 | `amd64` | **Fully-supported** | See [openSUSE Notes](#opensuse-notes) | diff --git a/scripts/install.sh b/scripts/install.sh index d8cd5df25..dcb98c8fb 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -105,9 +105,9 @@ mapReleaseToDistro() { image_sub_string="ubuntu1804-x64" elif [[ "$hostinfo" =~ .*"Ubuntu 18.04".* && "$hostinfo" =~ .*"arm64" ]]; then image_sub_string="ubuntu1804-arm64" - elif [[ "$hostinfo" =~ .*"Ubuntu 2"(0|1)".04".* && "$hostinfo" =~ .*"x86" ]]; then + elif [[ "$hostinfo" =~ .*"Ubuntu 2"(0|1|2)".04".* && "$hostinfo" =~ .*"x86" ]]; then image_sub_string="ubuntu2004-x64" - elif [[ "$hostinfo" =~ .*"Ubuntu 2"(0|1)".04".* && "$hostinfo" =~ .*"arm64" ]]; then + elif [[ "$hostinfo" =~ .*"Ubuntu 2"(0|1|2)".04".* && "$hostinfo" =~ .*"arm64" ]]; then image_sub_string="ubuntu2004-arm64" elif [[ "$hostinfo" =~ .*"CentOS Linux 7".* && "$hostinfo" =~ .*"x86" ]]; then image_sub_string="centos7-x64"