Added Fail2Ban, made git pull safer

This commit is contained in:
Marwolf
2018-07-21 15:35:02 -04:00
parent 4fe3eff472
commit 0aed3a789b

View File

@@ -67,7 +67,7 @@ if [ "$install" == "1" ]; then
echo ""
echo "Verifying the basics are installed."
echo ""
sudo apt update && sudo apt install unzip git build-essential apt-transport-https ca-certificates curl software-properties-common -y
sudo apt update && sudo apt install fail2ban unzip git build-essential apt-transport-https ca-certificates curl software-properties-common -y
echo ""
echo ""
echo "Do you have Docker installed?"
@@ -133,7 +133,9 @@ if [ "$install" == "1" ]; then
echo ""
echo "Verifying the basics are installed."
echo ""
sudo dnf -y update && sudo dnf -y upgrade && sudo dnf -y install screen make unzip git ca-certificates curl yum-utils device-mapper-persistent-data lvm2
sudo dnf -y update && sudo dnf -y upgrade && sudo dnf -y install fail2ban screen make unzip git ca-certificates curl yum-utils device-mapper-persistent-data lvm2
sudo systemctl start fail2ban
sudo systemctl enable fail2ban
echo ""
echo ""
echo "Permitting good ports through the firewall."
@@ -211,11 +213,13 @@ if [ "$install" == "1" ]; then
sudo wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm
sudo wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm
sudo yum -y install dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm python-dnf-0.6.4-2.sdl7.noarch.rpm
sudo dnf -y update && sudo dnf -y upgrade && sudo dnf -y install screen make unzip git ca-certificates curl yum-utils device-mapper-persistent-data lvm2
sudo dnf -y update && sudo dnf -y upgrade && sudo dnf -y install fail2ban screen make unzip git ca-certificates curl yum-utils device-mapper-persistent-data lvm2
sudo yum install -y python-pip
sudo pip install --upgrade pip
sudo pip install docker-compose
sudo yum upgrade python*
sudo systemctl start fail2ban
sudo systemctl enable fail2ban
echo ""
echo ""
echo "Permitting default game port 53595/tcp through the firewall."
@@ -404,7 +408,7 @@ fi
clear
echo "Checking for updates to the Docker-Home repository."
echo ""
git reset HEAD --hard && git pull
sudo git pull
echo ""
echo ""
echo ""