summaryrefslogtreecommitdiffhomepage
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2023-05-04scripts/installer.sh: check connectivity with pkgs.tailscale.comAnton Tolchanov1-0/+11
Installer script relies on pkgs.tailscale.com being reachable, both for checking what Linux distros are supported, but also for actually downloading repo configuration files, gpg keys and packages themselves. This change adds a simple reachability check which will print an error message when pkgs.tailscale.com is not reachable. Fixes https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-04-29.github: test installer script in CI in dockerAnton Tolchanov1-5/+9
Every time we change `installer.sh`, run it in a few docker containers based on different Linux distros, just as a simple test. Also includes a few changes to the installer script itself to make installation work in docker: - install dnf config-manager command before running it - run zypper in non-interactive mode - update pacman indexes before installing packages Updates https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-04-20scripts/installer: add Deepin, RisiOS.Denton Gentry1-1/+10
Fixes https://github.com/tailscale/tailscale/issues/7862 Fixes https://github.com/tailscale/tailscale/issues/7899 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-25scripts/installer.sh: check Photon OS version with pkg server.Denton Gentry1-8/+1
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 <dgentry@tailscale.com>
2023-03-25scripts/installer: add VMWare PhotonOS.Denton Gentry1-0/+19
Fixes https://github.com/tailscale/tailscale/issues/7651 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-24scripts: use pkg server to determine supported deb/rpm distrosAnton Tolchanov1-86/+18
Fixes https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-03-21scripts/installer.sh: Add Ubuntu Lunar Lobster 23.04.Denton Gentry1-1/+2
pkgs.tailscale.com added support in January, need to add it to the installer script. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-10scripts/installer: add PureOS and Amazon Linux NextDenton Gentry1-1/+9
Fixes https://github.com/tailscale/tailscale/issues/7410 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-18scripts/installer.sh: add GalliumOS and Sangoma LinuxDenton Gentry1-1/+7
Fixes https://github.com/tailscale/tailscale/issues/6541 Fixes https://github.com/tailscale/tailscale/issues/6555 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-18scripts/installer.sh: add postmarketos support.Denton Gentry1-0/+5
Fixes https://github.com/tailscale/tailscale/issues/7300 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-11scripts/installer.sh: add Mendel OS and OpenMandriva.Denton Gentry1-2/+2
Fixes https://github.com/tailscale/tailscale/issues/6926 Fixes https://github.com/tailscale/tailscale/issues/7076 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-01-27all: update tools that manage copyright headersWill Norris1-11/+8
Update all code generation tools, and those that check for license headers to use the new standard header. Also update copyright statement in LICENSE file. Fixes #6865 Signed-off-by: Will Norris <will@tailscale.com>
2023-01-27all: update copyright and license headersWill Norris2-6/+4
This updates all source files to use a new standard header for copyright and license declaration. Notably, copyright no longer includes a date, and we now use the standard SPDX-License-Identifier header. This commit was done almost entirely mechanically with perl, and then some minimal manual fixes. Updates #6865 Signed-off-by: Will Norris <will@tailscale.com>
2023-01-24scripts: explicitly install tailscale-archive-keyringAnton Tolchanov1-1/+1
This will ensure that the `tailscale-archive-keyring` Debian package gets installed by the installer script. Updates #3151 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-01-19cmd/tailscale/cli: make "update" work on WindowsBrad Fitzpatrick1-0/+3
Updates #6995 Co-authored-by: Aaron Klotz <aaron@tailscale.com> Change-Id: I16622f43156a70b6fbc8205239fd489d7378d57b Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-01-05scripts: permit 2023 in license headersBrad Fitzpatrick1-1/+1
Change-Id: Ia018cb8491871c8bf756c454d085780b75512962 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-12-24scripts/installer.sh: add SUSE Enterprise Server.Denton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/6840 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-11-10scripts/installer.sh: add Nobara Linux.Denton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/5763 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/install.sh: add RHEL7.Denton Gentry1-2/+6
Fixes https://github.com/tailscale/tailscale/issues/5729 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/installer.sh: add Debian Sid (rolling release)Denton Gentry1-1/+4
There is no VERSION_ID. root@sid:~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux bookworm/sid" NAME="Debian GNU/Linux" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Fixes https://github.com/tailscale/tailscale/issues/5522 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/install.sh: add openSUSE Leap 15.4Denton Gentry1-0/+1
Fixes https://github.com/tailscale/tailscale/issues/6095 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-24scripts/install.sh: add Ubuntu Kinetic KuduDenton Gentry1-1/+2
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-11scripts/installer.sh: add OSMCDenton Gentry1-0/+7
Fixes https://github.com/tailscale/tailscale/issues/4960 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-08-15scripts/installer.sh: add `-y` for unattended installDenton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/5377 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-08-10installer.sh: add manjaro-arm & EndeavourOS.Denton Gentry1-4/+4
Fixes https://github.com/tailscale/tailscale/issues/5192 Fixes https://github.com/tailscale/tailscale/issues/5284 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-07-27scripts: update check_license_headers.sh to skip zsyscall_windows.goAaron Klotz1-0/+3
Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-07-06install.sh: Add archarm and Raspbian StretchDenton Gentry1-2/+3
Fixes https://github.com/tailscale/tailscale/issues/4959 Fixes https://github.com/tailscale/tailscale/issues/4897 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-06-20Adding pkg for Freebsd installationSofiane Hamlaoui1-0/+7
Signed-off-by: Sofiane Hamlaoui <s0fianehaml40u1@gmail.com>
2022-06-20adding --noconfirm to pacman installationSofiane Hamlaoui1-1/+1
Signed-off-by: Sofiane Hamlaoui <s0fianehaml40u1@gmail.com>
2022-05-27scripts/installer: fix elementaryOSDenton Gentry1-2/+17
c2b907c965d18eeacff3d7796f486b45f7fb662b moved UBUNTU_VERSION out of the ubuntu case and into linuxmint, but linuxmint wasn't the only Ubuntu-based system which needed it. Restore UBUNTU_VERSION handling in the ubuntu case. Break elementaryOS out into its own handling so we can get the version number handling correct for keyring support. Tested on an elementaryOS 6.1 VM. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-05-20install.sh: add RHEL9.Denton Gentry1-1/+2
Fixes https://github.com/tailscale/tailscale/issues/4718 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-05-16scripts/installer.sh: add Xen EnterpriseDenton Gentry1-0/+5
Tested on a VM running Xen Enterprise 8.2.1. https://xcp-ng.org/ Fixes https://github.com/tailscale/tailscale/issues/4655 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/install: add Alma Linux.Denton Gentry1-1/+1
Tested using an Alma Linux 8.5 VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: support LinuxMint Debian.Denton Gentry1-7/+20
The primary distribution for LinuxMint is based on Ubuntu, but there is an alternate Debian-based distribution called LMDE. Both variations identify themselves as "linuxmint" We added UBUNTU_VERSION to the Ubuntu handling for linuxmint, the only distribution so far found to do this. Instead, split linuxmint out into its own case and use either UBUNTU_VERSION or DEBIAN_VERSION, whichever is present. Tested on an LMDE 5 (elsie) VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: call emerge with --ask=nDenton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/4354 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: add ParrotOS supportDenton Gentry1-0/+11
Support ParrotSec https://parrotsec.org/ Tested using a Parrot 5.0 VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-03-17scripts: install gnupg only when apt-key is neededSimon Deziel1-1/+1
apt-key depends on gnupg but apt-key itself if not used on modern systems (APT_KEY_TYPE=keyring). Signed-off-by: Simon Deziel <simon@sdeziel.info>
2022-02-17scripts/installer: add Ubuntu 22.04 LTS Jammy Jellyfish (#3955)Xe Iaso1-1/+2
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-02-14scripts/installer: automagically run apt update (#3939)Xe Iaso1-1/+2
When running this script against a totally fresh out of the box Debian 11 image, sometimes it will fail to run because it doesn't have a package list cached. This patch adds an `apt-get update` to ensure that the local package cache is up to date. Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-02-10add -y flag for xbps to allow installation on voidJay Stapleton1-1/+1
Signed-off-by: Jay Stapleton <jay@tailscale.com>
2022-02-10add -y flag for xbps to allow installation on voidJay Stapleton1-1/+1
2022-02-07installer.sh: accommodate linuxmint versioning.Denton Gentry1-1/+6
Recent linuxmint releases now use VERSION_CODENAME for a linuxmint release (like "uma") and set UBUNTU_CODENAME to the Ubuntu release they branched from. Tested in a linuxmint 20.2 VM. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-01-26scripts/installer: add Centos Stream 9 support (#3818)Xe Iaso1-2/+3
Blocked on package server support being deployed Signed-off-by: Xe <xe@tailscale.com>
2022-01-24envknob: add new package for all the strconv.ParseBool(os.Getenv(..))Brad Fitzpatrick1-1/+1
A new package can also later record/report which knobs are checked and set. It also makes the code cleaner & easier to grep for env knobs. Change-Id: Id8a123ab7539f1fadbd27e0cbeac79c2e4f09751 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-01-17control/controlbase: rename from control/noise.David Anderson1-1/+1
Updates #3488 Signed-off-by: David Anderson <danderson@tailscale.com>
2022-01-17Update installer.shJay Stapleton1-2/+2
2022-01-12scripts/installer.sh: add support to use the unstable track.Maisem Ali1-8/+18
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-01-11scripts: install gnupg deb, pass --yes to apt-getBrad Fitzpatrick1-4/+3
Fixes #3685 Fixes #3528 Fixes #3649 Change-Id: Ie029fca6cf3d07a77d228e9591ec1c1c828e68af Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-12-16scripts/installer.sh fix APT_SYSTEMCTL_START errorJay Stapleton1-0/+1
fix error: 'sh: 411: APT_SYSTEMCTL_START: parameter not set' on certain debian distributions Signed-off-by: Jay Stapleton <jay@tailscale.com>
2021-12-13install.sh: add linuxmint, kali, several more.Denton Gentry1-1/+27
After apt install, Kali Linux had not enabled nor started the tailscaled systemd service. Add a quirks mode to enable and start it after apt install for debian platforms. Signed-off-by: Denton Gentry <dgentry@tailscale.com>