From 3dfb424c7f03164954f82d36226adc1d1de466ae Mon Sep 17 00:00:00 2001 From: John Hooks Date: Wed, 2 Aug 2017 20:10:34 -0400 Subject: [PATCH] Add variable for n location --- xo_install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xo_install.sh b/xo_install.sh index 70ab099..f5fe068 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -10,6 +10,8 @@ yarn_repo="deb https://dl.yarnpkg.com/debian/ stable main" node_source="https://deb.nodesource.com/setup_5.x" yarn_gpg="https://dl.yarnpkg.com/debian/pubkey.gpg" +n_location="/usr/local/bin/n" + sudo apt-get install --yes nfs-common cd /opt curl -sL $node_source | sudo -E bash - @@ -17,8 +19,8 @@ curl -sS $yarn_gpg | sudo apt-key add - echo "$yarn_repo" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo apt-get install --yes nodejs yarn -curl -o /usr/local/bin/n $n_repo -sudo chmod +x /usr/local/bin/n +curl -o $n_location $n_repo +sudo chmod +x $n_location sudo n stable sudo apt-get install --yes build-essential redis-server libpng-dev git python-minimal libvhdi-utils git clone -b $xo_branch $xo_server