-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·59 lines (48 loc) · 2.01 KB
/
install.sh
File metadata and controls
executable file
·59 lines (48 loc) · 2.01 KB
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
#!/usr/bin/env bash
echo "------------------------------------------------------------"
echo " HEIMDALL PROJECT - install wizard "
echo " University of Rome Tor Vergata "
echo " "
echo " Authors: - Alessio Moretti "
echo " - Andrea Cerra "
echo " - Claudio Pastorini "
echo " "
echo " last build : February 2016 "
echo " https://github.com/HeimdallProject "
echo "------------------------------------------------------------"
echo ""
mkdir build
echo "[OK] creating build folders... "
download_path=$(pwd)
socket_path=$download_path"/sockets/"
log_path=$download_path"/log/"
cd ${download_path}
echo "[OK] creating working directory"
mkdir ${socket_path};
echo "[OK] creating socket folder... "
mkdir ${log_path};
echo "[OK] creating log folder..."
echo "" >> ./code/config/heimdall_config.conf
echo "" >> ./code/config/heimdall_config.conf
echo "# Unix sockets path" >> ./code/config/heimdall_config.conf
echo "sockets_path "$socket_path >> ./code/config/heimdall_config.conf
echo "[OK] socket initialization completed"
echo "" >> ./code/config/heimdall_config.conf
echo "# File for request logging" >> ./code/config/heimdall_config.conf
echo "log_file_req "$log_path"heimdall_req.log" >> ./code/config/heimdall_config.conf
echo "" >> ./code/config/heimdall_config.conf
echo "# File for response logging" >> ./code/config/heimdall_config.conf
echo "log_file_resp "$log_path"heimdall_resp.log" >> ./code/config/heimdall_config.conf
echo "[OK] log files initialization completed"
echo "[OK] init completed!"
cd ./build/
cmake ..
make WebSwitch
cd ..
echo ""
echo ""
echo "to run webswitch: >> cd ./build"
echo " >> ./WebSwitch"
echo "to change config: >> cd ./code/config"
echo " >> <editor> heimdall_config.conf"
echo " >> <editor> server_config.conf"