mirror of https://github.com/tteck/Proxmox.git
Add debian os detection for fail2ban config
This commit is contained in:
parent
8260116e50
commit
83b186ad4f
|
@ -220,7 +220,9 @@ findtime = 14400" > $vaultwardenfail2banadminjail
|
|||
|
||||
#In case of debian os, need to explicitly set the backend for fail2ban
|
||||
#see https://github.com/fail2ban/fail2ban/issues/3292
|
||||
if [ "$var_os" == "debian" ]; then
|
||||
os=$(less /etc/os-release | grep "^ID=")
|
||||
os="${os:3}"
|
||||
if [ "$os" == "debian" ]; then
|
||||
echo "backend = systemd" >> /etc/fail2ban/jail.d/defaults-debian.conf
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue