Skip to content

clientupdate: cleanup SPK and MSI downloads#10085

Merged
awly merged 1 commit intomainfrom
awly/clientupdate-cleanup-downloads
Nov 2, 2023
Merged

clientupdate: cleanup SPK and MSI downloads#10085
awly merged 1 commit intomainfrom
awly/clientupdate-cleanup-downloads

Conversation

@awly
Copy link
Copy Markdown
Member

@awly awly commented Nov 2, 2023

After we're done installing, clean up the temp files. This prevents temp volumes from filling up on hosts that don't reboot often.

Fixes #10082

@awly awly requested a review from tendstofortytwo November 2, 2023 16:23
After we're done installing, clean up the temp files. This prevents temp
volumes from filling up on hosts that don't reboot often.

Fixes #10082

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
@awly awly force-pushed the awly/clientupdate-cleanup-downloads branch from 9c302e0 to dd91d26 Compare November 2, 2023 16:36
@awly awly requested a review from tendstofortytwo November 2, 2023 16:37
Copy link
Copy Markdown
Member

@tendstofortytwo tendstofortytwo left a comment

Choose a reason for hiding this comment

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

Tested SPK cleanup, works

@awly awly merged commit 6c0ac8b into main Nov 2, 2023
@awly awly deleted the awly/clientupdate-cleanup-downloads branch November 2, 2023 18:21
return
}
for _, m := range matches {
if err := os.RemoveAll(m); err != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what if I make a symlink in /tmp/ named /tmp/tailscale-update-foo pointing to /? will this delete the whole world recursively as root?

tylersmalley pushed a commit that referenced this pull request Nov 2, 2023
After we're done installing, clean up the temp files. This prevents temp
volumes from filling up on hosts that don't reboot often.

Fixes #10082

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
(cherry picked from commit 6c0ac8b)
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.

clientupdate: delete downloaded packages after successful update

3 participants