Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install/fail2ban.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, shutil

def install():
os.popen('sudo apt-get install fail2ban 2>&1').read()
os.popen('sudo apt-get install --yes fail2ban 2>&1').read()
cpuArch = os.uname()[4]
if cpuArch.startswith('x86'):
shutil.move('/etc/fail2ban/jail.d/defaults-debian.conf', '/etc/fail2ban/jail.d/defaults-debian.orig')
Expand All @@ -19,4 +19,4 @@ def install():
fileOut.write('[apache]\n')
fileOut.write('enabled = true\n')
fileOut.write('port = 80,443,5602,9201\n')
os.popen('sudo service fail2ban restart').read()
os.popen('sudo service fail2ban restart').read()