tailscale/cmd/tailscaled
Anton Tolchanov c070d39287 cmd/tailscaled: handle tailscaled symlink on macOS
When Tailscale is installed via Homebrew, `/usr/local/bin/tailscaled`
is a symlink to the actual binary.

Now when `tailscaled install-system-daemon` runs, it will not attempt
to overwrite that symlink if it already points to the tailscaled binary.
However, if executed binary and the link target differ, the path will
he overwritten - this can happen when a user decides to replace
Homebrew-installed tailscaled with a one compiled from source code.

Fixes #5353

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2022-10-11 16:09:26 +01:00
..
childproc cmd/tailscaled/childproc: add be-child registration mechanism 2022-02-24 14:20:20 -08:00
debug.go all: fix more resource leaks found by staticmajor 2022-10-10 20:46:56 -07:00
depaware.txt net/tstun: instrument Wrapper with statistics gathering (#5847) 2022-10-05 12:24:30 -07:00
install_darwin.go cmd/tailscaled: handle tailscaled symlink on macOS 2022-10-11 16:09:26 +01:00
install_windows.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
proxy.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
required_version.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
ssh.go all: gofmt all 2022-04-29 13:06:04 -07:00
tailscaled_bird.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
tailscaled_notwindows.go all: require Go 1.19 2022-08-02 11:49:01 -07:00
tailscaled_test.go cmd/tailscaled: add a no-op test for profiling init-time memory allocs 2022-02-24 14:58:12 -08:00
tailscaled_windows.go all: consistently initialize Logf when creating tsdial.Dialers 2022-09-30 14:40:56 -07:00
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 2020-03-13 14:38:04 -07:00
tailscaled.go all: fix more resource leaks found by staticmajor 2022-10-10 20:46:56 -07:00
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 2021-07-08 14:39:45 -04:00
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2022-09-22 11:54:22 -07:00
with_cli.go cmd/tailscaled: add opt-in support for linking CLI into daemon 2022-07-27 11:15:52 -07:00