|
|
@ -255,6 +255,11 @@ main() {
|
|
|
|
VERSION="bullseye"
|
|
|
|
VERSION="bullseye"
|
|
|
|
APT_KEY_TYPE="keyring"
|
|
|
|
APT_KEY_TYPE="keyring"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
photon)
|
|
|
|
|
|
|
|
OS="photon"
|
|
|
|
|
|
|
|
VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)"
|
|
|
|
|
|
|
|
PACKAGETYPE="tdnf"
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: wsl?
|
|
|
|
# TODO: wsl?
|
|
|
|
# TODO: synology? qnap?
|
|
|
|
# TODO: synology? qnap?
|
|
|
@ -345,6 +350,13 @@ main() {
|
|
|
|
openbsd)
|
|
|
|
openbsd)
|
|
|
|
OS_UNSUPPORTED=1
|
|
|
|
OS_UNSUPPORTED=1
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
photon)
|
|
|
|
|
|
|
|
if [ "$VERSION" != "3" ] && \
|
|
|
|
|
|
|
|
[ "$VERSION" != "4" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
OS_UNSUPPORTED=1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
macos)
|
|
|
|
macos)
|
|
|
|
# We delegate macOS installation to the app store, it will
|
|
|
|
# We delegate macOS installation to the app store, it will
|
|
|
|
# perform version checks for us.
|
|
|
|
# perform version checks for us.
|
|
|
@ -460,6 +472,13 @@ main() {
|
|
|
|
$SUDO systemctl enable --now tailscaled
|
|
|
|
$SUDO systemctl enable --now tailscaled
|
|
|
|
set +x
|
|
|
|
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)
|
|
|
|
zypper)
|
|
|
|
set -x
|
|
|
|
set -x
|
|
|
|
$SUDO zypper ar -g -r "https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"
|
|
|
|
$SUDO zypper ar -g -r "https://pkgs.tailscale.com/$TRACK/$OS/$VERSION/tailscale.repo"
|
|
|
|