Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update binary from cli #52

Closed
broizter opened this issue May 15, 2020 · 6 comments
Closed

Update binary from cli #52

broizter opened this issue May 15, 2020 · 6 comments

Comments

@broizter
Copy link

broizter commented May 15, 2020

Would be nice to be able to update the binary from the cli, something like this for example;

blocky update

Bonus points if we could execute a command depending on if the update succeeded or not. For example I run Blocky from a systemd service file I made so I would wanna restart that if the update succeded. I guess you could configure that in the .yml file.

@0xERR0R
Copy link
Owner

0xERR0R commented May 15, 2020

Auto update is a complex process: if new version has new configuration properties, there must be always a default value. Or configuration file must be versioned. If update fails, last version should be restored, otherwise you will lost your DNS resolver and this is a very critical component in the network. I would always prefer to update critical components manually and check if configuration file must be updated too.
Did you try the docker image for blocky? This make updating easier (just docker pull).

@broizter
Copy link
Author

broizter commented May 16, 2020

I agree with all your concerns regarding auto update, but the risks are something I'm personally prepared to live with. I was hoping to avoid docker for... reasons - but I will consider it at least.

@0xERR0R
Copy link
Owner

0xERR0R commented May 24, 2020

I will close this issue, this topic is out of scope of this project and will introduce a lot of complexity. I think, the right way to achieve this (if you don't want to use docker), would be to create a OS specific package (DEB/RPM, AUR (archlinux), snap, Windows installer ...). This would create all OS dependent configurations and services (autostart, firewall etc).

@0xERR0R 0xERR0R closed this as completed May 24, 2020
@ghost
Copy link

ghost commented May 30, 2020

@broizter I'll be adding support for this application in the next update of ginstall.sh. 👍

@broizter
Copy link
Author

@WhaleHub Awesome!

@ghost
Copy link

ghost commented May 30, 2020

@broizter I just published ginstall.sh v1.3.0 with support for Blocky. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants