Skip to content

Commit

Permalink
Install nodejs from pap to ensure we always have a recent version
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjorbin committed Aug 17, 2013
1 parent f5c7317 commit 803b7d8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions provision/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ apt_package_check_list=(
# Allows conversion of DOS style line endings to something we'll have less
# trouble with in Linux.
dos2unix

# nodejs for use by grunt
g++
make
nodejs

)

echo "Check for apt packages to install..."
Expand Down Expand Up @@ -146,6 +152,20 @@ then
gpg -q --keyserver keyserver.ubuntu.com --recv-key A1715D88E1DF1F24
gpg -q -a --export A1715D88E1DF1F24 | apt-key add -

# Launchpad nodejs key C7917B12
gpg -q --keyserver keyserver.ubuntu.com --recv-key C7917B12
gpg -q -a --export C7917B12 | apt-key add -

hasnodejs=`cat /etc/apt/sources.list | grep 'node.js'`;
if [[ ! "$hasnodejs" == *"node.js"* ]];
then
printf "Adding node.js ppa to /etc/apt/sources.list\n"
echo '' >> /etc/apt/sources.list
echo '## node.js ppa' >> /etc/apt/sources.list
echo 'deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main' >> /etc/apt/sources.list
echo 'deb-src http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main' >> /etc/apt/sources.list
fi

# update all of the package references before installing anything
printf "Running apt-get update....\n"
apt-get update --assume-yes
Expand Down

0 comments on commit 803b7d8

Please sign in to comment.