-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
/tmp/k3s-releases.yaml #547
Comments
Hi, The file path needs to be consistent, so hetzner-k3s can locate the cached version every time it runs. The file gets automatically refreshed by the tool if it's older than 7 days, by the way. Check out the code for details: https://github.com/vitobotta/hetzner-k3s/blob/main/src/k3s.cr#L11-L17. If you still feel the file's location is an issue, even with the auto-refresh, where would you suggest storing it? |
I'm not sure if I've described the problem well. An example:
My suggestion would be to use a file name that is not shared with other system users, like...
... you get the idea |
OK, I can add the current user to the file name. Note taken. |
Actually I like the last suggestion for the home directory better. |
Not a big issue, but the cache file name
/tmp/k3s-releases.yaml
appears to be hardcoded in hetzner-k3sThis could lead to problems on a machine where hetzner-k3s is used by multiple system users. Once user A used hetzner-k3s one time (creating
/tmp/k3s-releases.yaml
), any other system user won't be able to refresh the file since it is writeable exclusively for user A.I did not run into any errors yet, but think that in theory this could lead into problems sooner or later, especially when user A stops running hetzner-k3s.
The text was updated successfully, but these errors were encountered: