Hi there, I am wondering if there is an autoupdater for Uplink CLI. The process described on the manual (here) requires the binary to be downloaded directly, and it would be nice if it is possible to update the binary with a tool like apt or extrepo.
Hi @Andisers,
We have a Windows version in winget
.
For the Linux there are many distributions and repos, so we didn’t setup a publish pipeline there yet.
However, you can setup a cron job to download a new version with required intervals.
The one-liner would be:
curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip && unzip -o uplink_linux_amd64.zip && sudo install uplink /usr/local/bin/uplink
1 Like
I understood. Running the cron job would be simple and looks nice to me
1 Like
The only problem that it requires to run under the user authorized to use sudo
without asking a password (you may also limit it only to the install
command, see man sudo
and example there: How to run a cron job using the sudo command - Ask Ubuntu). So need to experiment a little bit.
What will happen if cron tab will fire update during some upload operation?