Add variable for n location
This commit is contained in:
parent
a51af30a4c
commit
3dfb424c7f
|
@ -10,6 +10,8 @@ yarn_repo="deb https://dl.yarnpkg.com/debian/ stable main"
|
||||||
node_source="https://deb.nodesource.com/setup_5.x"
|
node_source="https://deb.nodesource.com/setup_5.x"
|
||||||
yarn_gpg="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
yarn_gpg="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
n_location="/usr/local/bin/n"
|
||||||
|
|
||||||
sudo apt-get install --yes nfs-common
|
sudo apt-get install --yes nfs-common
|
||||||
cd /opt
|
cd /opt
|
||||||
curl -sL $node_source | sudo -E bash -
|
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
|
echo "$yarn_repo" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --yes nodejs yarn
|
sudo apt-get install --yes nodejs yarn
|
||||||
curl -o /usr/local/bin/n $n_repo
|
curl -o $n_location $n_repo
|
||||||
sudo chmod +x /usr/local/bin/n
|
sudo chmod +x $n_location
|
||||||
sudo n stable
|
sudo n stable
|
||||||
sudo apt-get install --yes build-essential redis-server libpng-dev git python-minimal libvhdi-utils
|
sudo apt-get install --yes build-essential redis-server libpng-dev git python-minimal libvhdi-utils
|
||||||
git clone -b $xo_branch $xo_server
|
git clone -b $xo_branch $xo_server
|
||||||
|
|
Loading…
Reference in New Issue