tailscale/clientupdate
Andrew Lytvynov 77127a2494
clientupdate: fix background install for linux tarballs (#9852)
Two bug fixes:
1. when tailscale update is executed as root, `os.UserCacheDir` may
   return an error because `$XDG_CACHE_HOME` and `$HOME` are not set;
   fallback to `os.TempDir` in those cases
2. on some weird distros (like my EndeavourOS), `/usr/sbin` is just a
   symlink to `/usr/bin`; when we resolve `tailscale` binary path from
   `tailscaled`, allow `tailscaled` to be in either directory

Updates #755

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-10-17 14:24:06 -07:00
..
distsign clientupdate/distsign: add new prod root signing key to keychain 2023-10-11 09:20:17 -07:00
clientupdate_test.go clientupdate: add linux tarball updates (#9144) 2023-08-30 17:25:06 -06:00
clientupdate_windows.go cmd/tailscale/cli,clientupdate: extract new clientupdate package (#8827) 2023-08-10 17:01:22 -07:00
clientupdate.go clientupdate: fix background install for linux tarballs (#9852) 2023-10-17 14:24:06 -07:00
systemd_linux.go clientupdate: add linux tarball updates (#9144) 2023-08-30 17:25:06 -06:00
systemd_other.go clientupdate: add linux tarball updates (#9144) 2023-08-30 17:25:06 -06:00