From d5abdd915e705edb17658e952647bc30db15d63b Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Wed, 22 Mar 2023 14:23:30 -0700 Subject: [PATCH] scripts/installer: add VMWare PhotonOS. Fixes https://github.com/tailscale/tailscale/issues/7651 Signed-off-by: Denton Gentry --- scripts/installer.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/installer.sh b/scripts/installer.sh index 538bab5ac..c941ac564 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -255,6 +255,11 @@ main() { VERSION="bullseye" APT_KEY_TYPE="keyring" ;; + photon) + OS="photon" + VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)" + PACKAGETYPE="tdnf" + ;; # TODO: wsl? # TODO: synology? qnap? @@ -345,6 +350,13 @@ 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. @@ -460,6 +472,13 @@ main() { $SUDO systemctl enable --now tailscaled set +x ;; + tdnf) + set -x + curl -fsSL "https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo" > /etc/yum.repos.d/tailscale.repo + $SUDO tdnf install -y tailscale + $SUDO systemctl enable --now tailscaled + set +x + ;; zypper) set -x $SUDO zypper ar -g -r "https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"