rancher / rke2

https://docs.rke2.io/
Apache License 2.0
1.58k stars 270 forks source link

Don't overwrite RKE2 unnecessarily when install script is run more than once #2531

Open Oats87 opened 2 years ago

Oats87 commented 2 years ago

The RKE2 install script will overwrite the RKE2 binary even if this is not necessary.

I believe we should simply checksum the existing RKE2 binary and compare it to what we stage, to prevent unnecessary rewriting of the RKE2 binary.

briandowns commented 2 years ago

@Oats87 Is this a consideration on Windows as well?