Skip to content

Commit

Permalink
Updated homebridge version and removed nodejs version dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHae committed Nov 7, 2019
1 parent 7dab708 commit f823360
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions linux/deCONZ/usr/bin/deCONZ-homebridge-install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

UPDATE_VERSION_HB="0.4.50"
UPDATE_VERSION_HB_HUE="0.11.41"
UPDATE_VERSION_HB_LIB="4.4.6"
UPDATE_VERSION_HB_HUE="0.11.42"
UPDATE_VERSION_HB_LIB="4.4.7"
UPDATE_VERSION_NPM="6.9.0"
UPDATE_VERSION_NODE="10.16.3"
UPDATE_VERSION_NODE="12.13.0"
# use install name to install the specific node version via apt. Retrieve it via: apt-cache policy nodejs
UPDATE_VERSION_NODE_INSTALL_NAME="10.16.3-1nodesource1"
# UPDATE_VERSION_NODE_INSTALL_NAME="10.16.3-1nodesource1"
# when increasing major version of node adjust downoload link
NODE_DOWNLOAD_LINK="https://deb.nodesource.com/setup_10.x"
NODE_DOWNLOAD_LINK="https://deb.nodesource.com/setup_12.x"

TIMEOUT=0
LOG_LEVEL=3
Expand Down Expand Up @@ -177,7 +177,7 @@ function installHomebridge {
# else
curl -sL "$NODE_DOWNLOAD_LINK" | bash -
if [ $? -eq 0 ]; then
apt-get install -y nodejs="$UPDATE_VERSION_NODE_INSTALL_NAME"
apt-get install -y nodejs
if [ $? -ne 0 ]; then
[[ $LOG_WARN ]] && echo "${LOG_WARN}could not install nodejs"
putHomebridgeUpdated "homebridge" "install-error"
Expand All @@ -194,7 +194,7 @@ function installHomebridge {
if [ $? -eq 0 ]; then
curl -sL "$NODE_DOWNLOAD_LINK" | bash -
if [ $? -eq 0 ]; then
apt-get install -y nodejs="$UPDATE_VERSION_NODE_INSTALL_NAME"
apt-get install -y nodejs
if [ $? -ne 0 ]; then
[[ $LOG_WARN ]] && echo "${LOG_WARN}could not install nodejs"
putHomebridgeUpdated "homebridge" "install-error"
Expand Down

1 comment on commit f823360

@ebaauw
Copy link
Collaborator

@ebaauw ebaauw commented on f823360 Nov 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisHae , there's no more need to install homebridge-lib separately. It's once again listed as a regular dependency, since homebridge-hue@0.11.30.

Please sign in to comment.