Skip to content

Commit

Permalink
scripts/installer.sh: add more Linux variants.
Browse files Browse the repository at this point in the history
Updates #2915

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
  • Loading branch information
DentonGentry committed Oct 17, 2021
1 parent 569f70a commit bd625bb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ main() {
# - VERSION_CODENAME: the codename of the OS release, if any (e.g. "buster")
. /etc/os-release
case "$ID" in
ubuntu)
OS="$ID"
ubuntu|pop|neon)
OS="ubuntu"
VERSION="$VERSION_CODENAME"
PACKAGETYPE="apt"
;;
Expand Down Expand Up @@ -61,7 +61,7 @@ main() {
;;
fedora)
OS="$ID"
VERSION=""
VERSION="$VERSION_ID"
PACKAGETYPE="dnf"
;;
amzn)
Expand Down Expand Up @@ -189,6 +189,13 @@ main() {
OS_UNSUPPORTED=1
fi
;;
fedora)
if [ "$VERSION" != "34" ] && \
[ "$VERSION" != "35" ]
then
OS_UNSUPPORTED=1
fi
;;
rhel)
if [ "$VERSION" != "8" ]
then
Expand All @@ -204,6 +211,7 @@ main() {
opensuse)
if [ "$VERSION" != "leap/15.1" ] && \
[ "$VERSION" != "leap/15.2" ] && \
[ "$VERSION" != "leap/15.3" ] && \
[ "$VERSION" != "tumbleweed" ]
then
OS_UNSUPPORTED=1
Expand Down

0 comments on commit bd625bb

Please sign in to comment.