Added Fail2Ban, made git pull safer
This commit is contained in:
@@ -67,7 +67,7 @@ if [ "$install" == "1" ]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Verifying the basics are installed."
|
echo "Verifying the basics are installed."
|
||||||
echo ""
|
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 ""
|
echo ""
|
||||||
echo "Do you have Docker installed?"
|
echo "Do you have Docker installed?"
|
||||||
@@ -133,7 +133,9 @@ if [ "$install" == "1" ]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Verifying the basics are installed."
|
echo "Verifying the basics are installed."
|
||||||
echo ""
|
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 ""
|
echo ""
|
||||||
echo "Permitting good ports through the firewall."
|
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/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 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 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 yum install -y python-pip
|
||||||
sudo pip install --upgrade pip
|
sudo pip install --upgrade pip
|
||||||
sudo pip install docker-compose
|
sudo pip install docker-compose
|
||||||
sudo yum upgrade python*
|
sudo yum upgrade python*
|
||||||
|
sudo systemctl start fail2ban
|
||||||
|
sudo systemctl enable fail2ban
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Permitting default game port 53595/tcp through the firewall."
|
echo "Permitting default game port 53595/tcp through the firewall."
|
||||||
@@ -404,7 +408,7 @@ fi
|
|||||||
clear
|
clear
|
||||||
echo "Checking for updates to the Docker-Home repository."
|
echo "Checking for updates to the Docker-Home repository."
|
||||||
echo ""
|
echo ""
|
||||||
git reset HEAD --hard && git pull
|
sudo git pull
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user