-
Notifications
You must be signed in to change notification settings - Fork 1
/
pre-setup.sh
executable file
·62 lines (56 loc) · 1.19 KB
/
pre-setup.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
50
51
52
53
54
55
56
57
58
59
60
61
62
APT_UPDATED="True"
CURL_INSTALLED=$(dpkg -l | grep " curl ")
if [ -z "$CURL_INSTALLED" ]
then
if [ -z $APT_UPDATED ]
then
sudo apt-get update
APT_UPDATED="True"
fi
sudo apt-get -y install curl
fi
RUBY_INSTALLED=$(dpkg -l | grep " ruby2.0 ")
if [ -z "$RUBY_INSTALLED" ]
then
if [ -z $APT_UPDATED ]
then
sudo apt-get update
APT_UPDATED="True"
fi
sudo apt-get -y install ruby2.0 ruby2.0-dev
fi
BUNDLER_INSTALLED=$(dpkg -l | grep " bundler ")
if [ -z "$BUNDLER_INSTALLED" ]
then
if [ -z $APT_UPDATED ]
then
sudo apt-get update
APT_UPDATED="True"
fi
sudo apt-get -y install bundler
fi
RDOC_INSTALLED=$(gem2.0 list --local | grep "^rdoc ")
if [ -z "$BUNDLER_INSTALLED" ]
then
sudo gem2.0 install rdoc
fi
NTP_INSTALLED=$(dpkg -l | grep " ntp ")
if [ -z "$NTP_INSTALLED" ]
then
if [ -z $APT_UPDATED ]
then
sudo apt-get update
APT_UPDATED="True"
fi
sudo apt-get -y install ntp
fi
JAVA_INSTALLED=$(which java)
if [ -z "$JAVA_INSTALLED" ]
then
if [ -z "$APT_UPDATED" ]
then
sudo apt-get update
APT_UPDATED="True"
fi
sudo apt-get -y install openjdk-7-jre
fi