GaiusBaltar
Explorer
- Joined
- Jan 15, 2014
- Messages
- 61
My 2 cents again. The little upgrade script I threw together still works for me.
Would anyone be interested if I were to flesh the script out more? Where would be the right place to post it?
i would be very interested. and if i may be so bold to make suggestions:
- perhaps additional cleanup to delete prior .bz2 files for older downloaded versions (so it only keeps the current version's .bz2 file)? this way the script can be set as a cron job and ran automatically and would only update once a new file.
- A checksum statement to compare the hash of the downloaded .bz2 to the one found via curl (in addition to checking if the file is more than 0 bytes) before attempting to extract it.
- sendmail statement (optional) to email once the install has completed successfully. (not sure if sendmail in the jail will use the global settings in the host environment though. so this might be more trouble than its worth).
- check to see if curl (or any other commands that don't come with the jail by default) is installed, and if not, install it (since this script would be most likely run by root in the jail)
just some thoughts I had while playing with it and updating Plex today. i might even play around with the script if i have time this weekend and see if i can get any/all of those features working on my own.