Skip to content

Commit

Permalink
Add ppa way of installing node
Browse files Browse the repository at this point in the history
  • Loading branch information
selamanse committed Oct 19, 2018
1 parent 9ee6ac9 commit acf655f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ROCKETCHAT_VERSION=0.65.1
ROCKETCHAT_SHASUM=6484c19ad922520e8ca45b2d09eff3be33f227dd74f737b67c437fb3e6c6fc4b
NODE_VERSION=8.9.4
NODE_VERSION=8.11.1
DEBIAN_ISSUE=$(grep 9 /etc/debian_version >/dev/null && echo stretch || echo jessie)

checkcmd() {
Expand Down Expand Up @@ -32,15 +32,18 @@ waitforservice() {
}

installnode(){

if [ $DEBIAN_ISSUE == "stretch" ]; then
sudo curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
else
sudo apt-get install -y npm
# Meteor needs at least this version of node to work.
sudo npm install -g n
sudo n $NODE_VERSION
fi
# Meteor needs at least this version of node to work.
sudo npm install -g n
sudo n $NODE_VERSION
echo "node version is now: "
node --version
}

installdeps(){
Expand Down

0 comments on commit acf655f

Please sign in to comment.