-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallGBench.sh
executable file
·49 lines (40 loc) · 1.29 KB
/
installGBench.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
NODE=`which node`
echo "Checking to see if node is installed..."
if [ ! $NODE ]; then
echo "Installing Node.js"
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
echo "Node.js installed!"
fi
echo "Checking to see if MongoDB is installed..."
MONGO=`which mongod`
if [ ! $MONGO ]; then
echo "Installing MongoDB"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get update
sudo apt-get install mongodb-10gen
echo "MongoDB installed!"
fi
echo "Checking to see if git is installed..."
GIT=`which git`
if [ ! $GIT ]; then
echo "Installing git"
sudo apt-get install git-core
echo "Git installed!"
fi
echo "Checking to see if postfix is installed..."
MAIL=`which postfix`
if [ ! $MAIL ]; then
echo "We are installing postfix. Please Select 'Internet Site' when prompted to"
read -p "Press any key to continue..." -n1 -s
echo "Installing sendmail"
sudo apt-get install postfix
echo "Sendmail installed!"
fi
echo "Installing node modules..."
npm install -d
echo "Setup complete. All dependencies have been installed"