Skip to content

Commit

Permalink
Add Alpine support to ls-json (eclipse-che#4947)
Browse files Browse the repository at this point in the history
* Add Alpine support to ls-json

Signed-off-by: David Windell <david@outeredgeuk.com>

* Add nodejs if not installed

Signed-off-by: David Windell <david@outeredgeuk.com>
  • Loading branch information
davidwindell authored and slemeur committed Jun 26, 2017
1 parent 9df113d commit 12e1401
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ elif echo ${LINUX_TYPE} | grep -qi "opensuse"; then
${SUDO} zypper in nodejs
}

# Alpine 3.3
############
elif echo ${LINUX_TYPE} | grep -qi "alpine"; then
test "${PACKAGES}" = "" || {
${SUDO} apk update
${SUDO} apk add ${PACKAGES};
}

command -v nodejs >/dev/null 2>&1 || {
${SUDO} apk update
${SUDO} apk add nodejs;
}

else
>&2 echo "Unrecognized Linux Type"
>&2 cat $FILE
Expand Down

0 comments on commit 12e1401

Please sign in to comment.