Re: sysupdate: Limit update to at most one major version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Forwarding to mailing list for future reference. (Also I want to reference this mail in an upcoming mail).

On Mon, Jan 1, 2024, 14:31 Nils Kattenbeck <nilskemail@xxxxxxxxx> wrote:
Hi Adrian

You can change the URL you check for updates to include the current version number, then upload each version to a separate directory.

I.e. instead of putting all the versions in update.example.com/myos, you'd put v2 in u.e.c/m/v1 and you'd put v3 in u.e.c/m/v2 and so forth

Brilliant, I did not think of that.
I guess this would fall down when implementing something more complex like allowing to updating to the next two versions but this already suffices for my purpose. (In that case it would be possible to serve the images under multiple directory but that would be a bit ugly, especially when backing it with something like S3 which does not support symlinks - and also is disadvantageous for caching with CDNs.)

Kind regards, Nils

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux