From 803b7d8c9cf14cd794829d5ce860ec1b5577d425 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 17 Aug 2013 15:16:01 -0400 Subject: [PATCH] Install nodejs from pap to ensure we always have a recent version --- provision/provision.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/provision/provision.sh b/provision/provision.sh index 089c445e3..95fd72406 100755 --- a/provision/provision.sh +++ b/provision/provision.sh @@ -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..." @@ -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