forked from MatthewClarkMay/geoip-attack-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-centos.sh
More file actions
30 lines (23 loc) · 730 Bytes
/
deploy-centos.sh
File metadata and controls
30 lines (23 loc) · 730 Bytes
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
#/bin/bash
# Install system dependencies
echo "Installing system dependencies..."
sudo yum install python3-pip redis wget -y;
# Allow firewall port 8888
sudo firewall-cmd --zone=public --add-port=8888/tcp
# Install python requirements
echo "Installing python dependencies..."
sudo pip3 install -U -r requirements.txt
# Configure the DataServer DB
echo "Downloading geoip database..."
cd DataServerDB
./db-dl.sh
cd ..
# Configure AttackMapServer, extract flags to the correct place
echo "Configuring AttackMapServer..."
cd AttackMapServer/static/
unzip flags.zip
cd ../..
echo ""
echo "Done configuring stuff!"
echo "Don't forget to start the redis-server before starting DataServer.py, or AttackMapServer.py"
echo "Enjoy!"