-
Notifications
You must be signed in to change notification settings - Fork 9
/
bootstrap.sh
57 lines (49 loc) · 1.22 KB
/
bootstrap.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
#!/usr/bin/env bash
# in the case a machine has already been provisioned, running this script shouldn't be a problem.
# quick and dirty test to see if update has been run yet.
if [ ! -d /opt ]
then
apt-get update
fi
apt-get install -y mono-devel
apt-get install -y mono-xbuild
apt-get install -y g++
apt-get install -y make
apt-get install -y libtool
apt-get install -y autoconf
apt-get install -y automake
apt-get install -y uuid-dev
apt-get install -y git
apt-get install -y unzip
apt-get install -y libcurl-openssl-dev
apt-get install -y libcurl4-openssl-dev
apt-get install -y wget
apt-get install -y screen
apt-get install -y libc6-dev-i386
if [ ! -d /opt ]
then
mkdir /opt
fi
# install redis
if [ ! -f /usr/local/bin/redis-server ]
then
cd /opt
wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
gunzip redis-2.6.14.tar.gz
tar xvf redis-2.6.14.tar
cd redis-2.6.14
make
cd src
cp redis-cli /usr/local/bin
cp redis-server /usr/local/bin
fi
# acquire and install hiredis (same old version as I'm using for windows)
if [ ! -f /usr/local/lib/libnanomsg.a ]
then
cd /opt
git clone https://github.com/mhowlett/hiredis.git
cd hiredis
make
make install
ldconfig
fi