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

ha-bridge fails to start if unable to access Github #20

Open
antonywinn opened this issue Oct 4, 2018 · 0 comments
Open

ha-bridge fails to start if unable to access Github #20

antonywinn opened this issue Oct 4, 2018 · 0 comments

Comments

@antonywinn
Copy link

If ha-bridge cannot access github during startup in /etc/my_init.d/firstrun.sh the $VERSION variable ends up with no value and the script attempts to download and run "ha-bridge-.jar"

eg.
wget tries: https://github.com/bwssytems/ha-bridge/releases/download/v/ha-bridge-.jar

Workaround is to set the environment variable to override the version (I'm using docker) and ha_bridge will start normally. Of course future updates are disabled until the container is rebuilt and environment variable removed.

Would it be possible to have some error checking in the script so that if it fails to connect to github for the version check, it uses the existing highest version?

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

1 participant