Update Fail2ban v1.0.2 + Python3 support

This commit is contained in:
Edi Septriyanto
2023-01-18 08:26:35 +07:00
parent 877b557c8a
commit 9f5c08ab20
2 changed files with 3 additions and 1 deletions

View File

@@ -322,4 +322,4 @@ INSTALL_FAIL2BAN=true
# Available installer: repo | source.
FAIL2BAN_INSTALLER="source"
FAIL2BAN_VERSION="0.11.2"
FAIL2BAN_VERSION="1.0.2"

View File

@@ -71,6 +71,8 @@ function init_fail2ban_install() {
run wget "${fail2ban_download_link}" -O fail2ban.tar.gz && \
run tar -zxf fail2ban.tar.gz && \
run cd fail2ban-*/ && \
# Convert to Python3 codebase
run ./fail2ban-2to3 && \
run python setup.py install && \
run cp files/debian-initd /etc/init.d/fail2ban && \
run update-rc.d fail2ban defaults