mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
installer update (fail2ban)
This commit is contained in:
parent
a16af0ec83
commit
5604a90870
94 changed files with 37 additions and 36 deletions
|
@ -1063,12 +1063,12 @@ if [ "$fail2ban" = 'yes' ]; then
|
|||
rm -f fail2ban.tar.gz
|
||||
if [ "$dovecot" = 'no' ]; then
|
||||
fline=$(cat /etc/fail2ban/jail.local |grep -n dovecot-iptables -A 2)
|
||||
fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
|
||||
fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
|
||||
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
|
||||
fi
|
||||
if [ "$exim" = 'no' ]; then
|
||||
fline=$(cat /etc/fail2ban/jail.local |grep -n exim-iptables -A 2)
|
||||
fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
|
||||
fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
|
||||
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
|
||||
fi
|
||||
update-rc.d fail2ban defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue