This script will download new versions of Fleet and fleetctl, stop the fleet service, back up the old files, replace the binaries, add the ability for Fleet to run on well known ports and then restart Fleet.
It is extensively commented, if you can improve it please do and let me know so I can learn.