aptalca / docker-ha-bridge

Docker container for Home Automation Bridge
GNU General Public License v2.0
29 stars 19 forks source link

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

Open antonywinn opened 6 years ago

antonywinn commented 6 years ago

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?