install.sh: add linuxmint, kali, several more.

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>
pull/3566/head
Denton Gentry 3 years ago committed by Denton Gentry
parent adc97e9c4d
commit e133bb570b

@ -32,7 +32,7 @@ main() {
# - VERSION_CODENAME: the codename of the OS release, if any (e.g. "buster") # - VERSION_CODENAME: the codename of the OS release, if any (e.g. "buster")
. /etc/os-release . /etc/os-release
case "$ID" in case "$ID" in
ubuntu|pop|neon) ubuntu|pop|neon|zorin|elementary|linuxmint)
OS="ubuntu" OS="ubuntu"
VERSION="$VERSION_CODENAME" VERSION="$VERSION_CODENAME"
PACKAGETYPE="apt" PACKAGETYPE="apt"
@ -68,6 +68,23 @@ main() {
APT_KEY_TYPE="keyring" APT_KEY_TYPE="keyring"
fi fi
;; ;;
kali)
OS="debian"
PACKAGETYPE="apt"
YEAR="$(echo "$VERSION_ID" | cut -f1 -d.)"
APT_SYSTEMCTL_START=true
# Third-party keyrings became the preferred method of
# installation in Debian 11 (Bullseye), which Kali switched
# to in roughly 2021.x releases
if [ "$YEAR" -lt 2021 ]; then
# Kali VERSION_ID is "kali-rolling", which isn't distinguishing
VERSION="buster"
APT_KEY_TYPE="legacy"
else
VERSION="bullseye"
APT_KEY_TYPE="keyring"
fi
;;
centos) centos)
OS="$ID" OS="$ID"
VERSION="$VERSION_ID" VERSION="$VERSION_ID"
@ -94,6 +111,11 @@ main() {
VERSION="" VERSION=""
PACKAGETYPE="dnf" PACKAGETYPE="dnf"
;; ;;
rocky)
OS="fedora"
VERSION=""
PACKAGETYPE="dnf"
;;
amzn) amzn)
OS="amazon-linux" OS="amazon-linux"
VERSION="$VERSION_ID" VERSION="$VERSION_ID"
@ -386,6 +408,10 @@ main() {
esac esac
$SUDO apt-get update $SUDO apt-get update
$SUDO apt-get install tailscale $SUDO apt-get install tailscale
if [ "$APT_SYSTEMCTL_START" = "true" ]; then
$SUDO systemctl enable --now tailscaled
$SUDO systemctl start tailscaled
fi
set +x set +x
;; ;;
yum) yum)

Loading…
Cancel
Save