Dont know if useful the upgrade.sh, should check version to see if it should replace the binary similar to how crowdsec checks it.