1

It is possible to programmatically download the latest version of craft. But is it also possible to get this file's md5 sum directly from the server?

I'm thinking about something like this:

http://buildwithcraft.com/latest.hash

I am asking this because I'm currently writing a Salt formula to install Craft. I intend to use salt.states.files.managed, which is capable of downloading a file only if it has a different md5 sum than an already downloaded version of the file.

3

Currently not, but that's not a bad idea and probably worth adding to https://feedback.buildwithcraft.com.

During an auto-update, the file name of the patch file that is downloaded happens to be the MD5 sum of the file so the Craft client can verify the integrity of the downloaded file, but there isn't a mechanism like that in place currently for full Craft downloads.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.