Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientupdate: add linux tarball updates #9144

Merged
merged 1 commit into from
Aug 30, 2023
Merged

clientupdate: add linux tarball updates #9144

merged 1 commit into from
Aug 30, 2023

Conversation

awly
Copy link
Contributor

@awly awly commented Aug 29, 2023

As a fallback to package managers, allow updating tailscale that was self-installed in some way. There are some tricky bits around updating the systemd unit (should we stick to local binary paths or to the ones in tailscaled.service?), so leaving that out for now.

Updates #6995

files["tailscaled"]++
if err := writeFile(tr, tailscaled+".new", 0755); err != nil {
return fmt.Errorf("failed extracting the new tailscaled binary from %q: %w", path, err)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a default: to check for weird junk? If we did that, we'd need a case to account for tailscaled.service, even if just to say "Yes, we got it."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would cause updates to fail if we add a new file to the tarball in a new release.
Without default we have some forward-compatibility :)

clientupdate/clientupdate.go Show resolved Hide resolved
clientupdate/clientupdate.go Outdated Show resolved Hide resolved
clientupdate/clientupdate.go Outdated Show resolved Hide resolved
clientupdate/clientupdate.go Outdated Show resolved Hide resolved
Base automatically changed from awly/detect-linux-package-manager-installs to main August 30, 2023 00:36
@awly awly force-pushed the awly/update-tarball branch 2 times, most recently from a67d7cb to c343542 Compare August 30, 2023 16:02
@awly awly requested a review from noncombatant August 30, 2023 16:04
@awly awly force-pushed the awly/update-tarball branch 6 times, most recently from 18f7b85 to 4636b4c Compare August 30, 2023 19:58
As a fallback to package managers, allow updating tailscale that was
self-installed in some way. There are some tricky bits around updating
the systemd unit (should we stick to local binary paths or to the ones
in tailscaled.service?), so leaving that out for now.

Updates #6995

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
@awly awly merged commit 4e72992 into main Aug 30, 2023
37 checks passed
@awly awly deleted the awly/update-tarball branch August 30, 2023 23:25
alexelisenko pushed a commit to Control-D-Inc/tailscale that referenced this pull request Feb 15, 2024
As a fallback to package managers, allow updating tailscale that was
self-installed in some way. There are some tricky bits around updating
the systemd unit (should we stick to local binary paths or to the ones
in tailscaled.service?), so leaving that out for now.

Updates tailscale#6995

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Signed-off-by: Alex Paguis <alex@windscribe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants