mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 04:06:35 +02:00
So the public can "brew install" tailscale and start it as a global boot daemon via brew services. supported: Homebrew 3.0, go1.15 darwin/amd64, macOS Catalina 10.15.3, Intel 64-bit probably also but unconfirmed: BigSur 11 and Apple M1 ARM64 NOTE: lots of upgrades and polish since 1st squashed WIP PR, and applies most prior feedback Part of #177. (WIP) Signed-off-by: Mike Kramlich <groglogic@gmail.com>
40 lines
1.8 KiB
Bash
Executable File
40 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
# TODO(mkramlich):
|
|
# dl-tarball-sha.sh
|
|
# make-test-source-tarball.sh
|
|
|
|
|
|
echo test variant: global, tb-local
|
|
#TODO(mkramlich): for the tb-local tests, server-tarball.sh should be running, with tarball in place
|
|
cp brew/tailscale{.tb-local,}.rb
|
|
# brew services (via launchd) start as a global boot daemon (in /Library/LaunchDaemons), running as root
|
|
# TODO(mkramlich): confirm at reboot starts & works
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/install-start-with-checks.sh
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/stop-uninstall-wipe.sh
|
|
|
|
|
|
echo test variant: global, tb-github
|
|
cp brew/tailscale{.tb-github,}.rb
|
|
# brew services (via launchd) start as a global boot daemon (in /Library/LaunchDaemons), running as root
|
|
# TODO(mkramlich): confirm at reboot starts & works
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/install-start-with-checks.sh
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/stop-uninstall-wipe.sh
|
|
|
|
|
|
echo test variant: global, commit-pin
|
|
cp brew/tailscale{.commit-pin,}.rb
|
|
# brew services (via launchd) start as a global boot daemon (in /Library/LaunchDaemons), running as root
|
|
# TODO(mkramlich): confirm at reboot starts & works
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/install-start-with-checks.sh
|
|
SUDO="sudo" INSTALLED_PLIST_DIR=/Library/LaunchDaemons brew/stop-uninstall-wipe.sh
|
|
|
|
|
|
#####################################
|
|
|
|
# brew services (via launchd) start as a user login agent (in ~/Library/LaunchAgents), BUT runs as sudo
|
|
# TODO(mkramlich): just a WIP POC, much lower priority than boot perm, might drop
|
|
#SUDO="" INSTALLED_PLIST_DIR=~/Library/LaunchAgents brew/install-start-with-checks.sh
|
|
#SUDO="" INSTALLED_PLIST_DIR=~/Library/LaunchAgents brew/stop-uninstall-wipe.sh
|