-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
DRAFT for Disscussion: New feature Auto Update #1089
Conversation
I am strongly against that. Many people have no idea about it, then thousands of issues pile up because people somehow have the auto-update on and something happens or breaks in the scripts. |
Assuming this is the automation and unsupervised running of "update" in the LXCs, it's something that I've thought about and would like to try. But I can understand MickLesks point of view. But for somebody that's not familiar with this sort of stuff and are only running servers to save on subscription fees. This is risky. |
I understand both of you and your concernces, i‘ve only come up with this becouse i‘ve read the question often if there is a possiblitie for such a thing. IMHO we could try it if i could lessen your concernces, and remove the feature anytime if issues because of the auto updates start piling up. I would also then add a warning in the documentation. |
I'd like to see it. Perhaps not even having it in the Advanced Options as again, I think most non-technical people will select yes because it sounds "hassle free" and may not understand the risks. How many different apps have you tried this with? |
Yep, we also could remove it from there, but then i would also not provide a „Enable-Autoupdate.sh“ script. You would then have the same problem. And i basicly only creates a file „/opt/autoupdate-lxc“ and cronjob to run /usr/bin/upadte once a day. When you know what you are doing linux wise you could to this yourself anyway. I‘ve testet it with a few Containers during creation, but it dose not depend on the application it self. I just added a If before the Dialouge to check if a file exkists. If yes, dont show it and kust run the update. |
I appreciate the concerns but when you have 40+ (and rising) containers as I do, app updates become a chore that doesn't get done very often which means that security vulnerabilities can creep in which isn't great. These scripts are priceless because they take the monotonous drudgery out of spinning up lxcs. An app update script is the one missing piece remaining TBH. |
That may be, but if people (normal users) don't make constant backups and the cron destroys any LXCs or even leaves them in an unfixable state, then we probably get a lot of issues every day. As I said, I am strictly against this. Also from a security perspective, these are interventions that a normal user may not be able to assess at all, or the user may not want to update at all. An even worse example is when a repo or a user is hacked (some file sharing script here), which was the case last year or at the beginning of this year. If malware gets onto x devices, I don't want to tie my shoe to the damage ^^ |
I understand your concerenes. I´m closing tthis up :) |
✍️ Description
This changes provide the option to automaticly update the container with a cron job.
It only works if you explicitly set this option with advanced options during CT creation.
Alltough you can retrofit any install by simply adding a file
touch /opt/autoupdate_lxc
and add the cronjobecho "0 0 * * * /usr/bin/update" >/etc/cron.d/autoupdate_lxc
I´d like to merge into develop first so it can be further tested before merging into main.
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered:
📋 Additional Information (optional)
Provide any extra context or screenshots about the feature or fix here.