forked from cloudogu/ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·49 lines (39 loc) · 1.09 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# be sure we are root
if [ "$(id -u)" -ne 0 ]; then
echo "please run as root"
exit 1
fi
# set install home, if not set
if [ -z ${INSTALL_HOME+x} ]; then
INSTALL_HOME=$(cd "$( dirname "${0}" )" && pwd)
fi
export INSTALL_HOME
# install ces packages
echo "install ces packages"
$INSTALL_HOME/install/install-ces-packages.sh
# snyc resources
echo "sync files"
$INSTALL_HOME/install/sync-files.sh
# source new path environment, to fix missing etcdctl
source /etc/environment
export PATH
echo "INSTALL_HOME=\"$INSTALL_HOME\"" >> /etc/environment
# create overlay network
# errormessages of test may be confusing to read ... perhaps this could be fixed later
echo "create network"
$INSTALL_HOME/install/create-network.sh
# prepare environment
echo "prepare environment"
$INSTALL_HOME/install/prepare-environment.sh
# building firewall
echo "building up a firewall"
$INSTALL_HOME/install/firewall.sh
# restart docker
echo "restart docker with new config"
systemctl restart docker.service
# print setup message
$INSTALL_HOME/install/setup-message.sh