-
Notifications
You must be signed in to change notification settings - Fork 70
/
install.sh
27 lines (27 loc) · 831 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y libnss3-dev libxss1 git
which git 2>&1 >/dev/null
if [ $? -ne 0 ] ; then
echo git is not currently installed
echo Please install git before proceeding
else
git submodule init
git submodule update
if [ $? -ne 0 ] ; then
echo submodule install failed.
echo Maybe try cloning recursively?
echo git clone --recursive https://github.com/sebastienvercammen/ptc-acc-gen.git
fi
sudo apt-get update 2> /dev/null
sudo apt-get install -y nodejs nodejs-legacy
if [ $? -ne 0 ] ; then
echo depenencies install failed. Please use the installer of your choice to grab them
echo examples:
echo apt-get install npm nodejs
echo yum install npm nodejs
else
sudo npm install
fi
fi
python config.py