You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/containerboot
Maisem Ali 7bdea283bd cmd/containerboot: symlink TS_SOCKET to socket expected by CLI
`tailscaled` and `tailscale` expect the socket to be at
`/var/run/tailscale/tailscaled.sock`, however containerboot
would set up the socket at `/tmp/tailscaled.sock`. This leads to a
poor UX when users try to use any `tailscale` command as they
have to prefix everything with `--socket /tmp/tailscaled.sock`.

To improve the UX, this adds a symlink to
`/var/run/tailscale/tailscaled.sock` to point to `/tmp/tailscaled.sock`.

This approach has two benefits, 1 users are able to continue to use
existing scripts without this being a breaking change. 2. users are
able to use the `tailscale` CLI without having to add the `--socket` flag.

Fixes tailscale/corp#15902
Fixes #6849
Fixes #10027

Signed-off-by: Maisem Ali <maisem@tailscale.com>
6 months ago
..
kube.go cmd/k8s-operator: put Tailscale IPs in Service ingress status 10 months ago
main.go cmd/containerboot: symlink TS_SOCKET to socket expected by CLI 6 months ago
main_test.go all: fix nilness issues 7 months ago
test_tailscale.sh cmd/containerboot: make a tests table, add more tests. 2 years ago
test_tailscaled.sh cmd/containerboot: avoid leaking bash scripts after test runs 9 months ago