Skip to content

Commit

Permalink
Update Node.JS installer to use Carbon for ARMv6l
Browse files Browse the repository at this point in the history
This patch updates the installed version of Node.JS from Boron to Carbon.  This
is an LTS release supported through December 2019.

Signed-off-by: Brian Warner <brian@bdwarner.com>
  • Loading branch information
brianwarner authored and ThomDietrich committed Jun 23, 2018
1 parent d2343fd commit 09f4a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/nodejs-apps.sh
Expand Up @@ -8,8 +8,8 @@ nodejs_setup() {

if is_armv6l; then
echo -n "$(timestamp) [openHABian] Installing Node.js for armv6l (prerequisite for other packages)... "
f=$(wget -qO- https://nodejs.org/download/release/latest-boron/ | grep "armv6l.tar.gz" | cut -d '"' -f 2)
cond_redirect wget -O /tmp/nodejs-armv6l.tar.gz https://nodejs.org/download/release/latest-boron/$f 2>&1 || FAILED=1
f=$(wget -qO- https://nodejs.org/download/release/latest-carbon/ | grep "armv6l.tar.gz" | cut -d '"' -f 2)
cond_redirect wget -O /tmp/nodejs-armv6l.tar.gz https://nodejs.org/download/release/latest-carbon/$f 2>&1 || FAILED=1
if [ $FAILED -eq 1 ]; then echo "FAILED (nodejs preparations)"; exit 1; fi
cond_redirect tar -zxf /tmp/nodejs-armv6l.tar.gz --strip-components=1 -C /usr 2>&1
cond_redirect rm /tmp/nodejs-armv6l.tar.gz 2>&1
Expand Down

0 comments on commit 09f4a2e

Please sign in to comment.