nextcloud / updater

:arrows_counterclockwise: The updater app to keep your Nextcloud up-to-date
GNU Affero General Public License v3.0
46 stars 32 forks source link

Add option "--no-major" to CLI updater #319

Open johkoenig opened 3 years ago

johkoenig commented 3 years ago

Hi everybody,

I want to trigger nightly updates by cron job. However, these should be limited to security fixes, i.e. only the newest minor version should be updated. Therefore, I ask you to include a "--no-major" CLI option.

I think this also would enhance security, since security updates should be installed automatically. Currently, this is not possible without the "risk" of forcing an update to the next major version.

Thank you!

MorrisJobke commented 3 years ago

Nice idea 👍

damienvancouver commented 1 year ago

This sure would be handy, then i could use the updater to get NC 25.0.6 point release. Unfortunately the update channel wants to send out NC 27.0.0 as "stable" which means it's going to skip 25.0.6 patch release and I'll have to do that update manually (or not at all).

There is discussion over at #336 around this too. There is another one #291 that could also solve the problem. But none of these issues has got anywhere and as-is that means the updater is unusable unless you're willing to embrace early point releases of a new major version. In which case, what is the point of bugfixes to the old versions at all if they are near impossible to install reliably.

It would be great to have this functionality somehow, via one of these 3 tickets, so admins can reliably get at those point releases...