From ed10a1769b8ace7e9099cc6da419bacc0d11c49c Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Sat, 25 Mar 2023 17:00:46 -0700 Subject: [PATCH] scripts/installer.sh: check Photon OS version with pkg server. Photon OS support crossed streams with using pkgserve to check for supported versions 6f9aed1656d0d9ff1a22ed6a022120c6a4f43688. Make Photon OS also rely on pkgserve. Updates https://github.com/tailscale/tailscale/issues/7651 Updates https://github.com/tailscale/corp/issues/8952 Signed-off-by: Denton Gentry --- scripts/installer.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index c941ac564..0fb2d89a5 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -316,7 +316,7 @@ main() { # versions we support? OS_UNSUPPORTED= case "$OS" in - ubuntu|debian|raspbian|centos|oracle|rhel|amazon-linux|opensuse) + ubuntu|debian|raspbian|centos|oracle|rhel|amazon-linux|opensuse|photon) # Check with the package server whether a given version is supported. URL="https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/installer-supported" $CURL "$URL" 2> /dev/null | grep -q OK || OS_UNSUPPORTED=1 @@ -350,13 +350,6 @@ main() { openbsd) OS_UNSUPPORTED=1 ;; - photon) - if [ "$VERSION" != "3" ] && \ - [ "$VERSION" != "4" ] - then - OS_UNSUPPORTED=1 - fi - ;; macos) # We delegate macOS installation to the app store, it will # perform version checks for us.