Skip to content

Commit 5f0025e

Browse files
committed
Merge pull request #38 from aknrdureegaesr/use-default-nodejs-on-xenial
Use distro node.js for new Xenial Ubuntu release. Fixes #35.
2 parents d52b71b + d9dc740 commit 5f0025e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

rails-install-ubuntu.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22

33
set -e
44

5-
echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked."
6-
sudo add-apt-repository ppa:chris-lea/node.js
5+
if ! greq -q xenial /etc/lsb-release
6+
then
7+
echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked."
8+
sudo add-apt-repository ppa:chris-lea/node.js
9+
else
10+
: # Xenial not (yet, as of April 2016) supported by that ppa,
11+
# use default distro node.js.
12+
fi
713

814
echo "Updates packages. Asks for your password."
915
sudo apt-get update -y

0 commit comments

Comments
 (0)