-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·43 lines (33 loc) · 1 KB
/
build.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
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
b updating APT...
apt-get -qq update
bl OK
b installing unzip, ruby, ruby-dev, make, git...
apt-get -qqy install unzip ruby ruby-dev make git >/dev/null 2>&1
bl OK
b installing etcd rubygem...
gem install --no-rdoc --no-ri etcd >/dev/null
bl OK
b install port-authority gem...
gem install --no-rdoc --no-ri port-authority >/dev/null
bl OK
b disabling sshd...
rm -rf /etc/service/sshd
rm -f /etc/my_init.d/00_regen_ssh_host_keys.sh
bl OK
b disabling cron...
touch /etc/service/cron/down
bl OK
b installing etcdctl...
curl -L -q https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz -o/tmp/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz 2>/dev/null
cd /tmp/
tar xzf etcd-v${ETCD_VERSION}-linux-amd64.tar.gz
cp etcd-v${ETCD_VERSION}-linux-amd64/etcdctl /bin/
cd /
rm -rf /tmp/etcd-v${ETCD_VERSION}-linux-amd64*
bl OK
b installing etcd-tools...
gem install etcd-tools -v=${ETCD_TOOLS_VERSION} --no-rdoc --no-ri
bl OK
cleanup