mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
deb12 fail2ban auth.log fix
This commit is contained in:
parent
ce5fac9b07
commit
93a6d0b6e9
1 changed files with 7 additions and 0 deletions
|
@ -1630,6 +1630,13 @@ if [ "$fail2ban" = 'yes' ]; then
|
|||
fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
|
||||
sed -i "${fline}s/false/true/" /etc/fail2ban/jail.local
|
||||
fi
|
||||
if [ ! -e /var/log/auth.log ]; then
|
||||
# Debian workaround: auth logging was moved to systemd
|
||||
# We took this fix from HestiaCP
|
||||
touch /var/log/auth.log
|
||||
chmod 640 /var/log/auth.log
|
||||
chown root:adm /var/log/auth.log
|
||||
fi
|
||||
#update-rc.d fail2ban defaults
|
||||
currentservice='fail2ban'
|
||||
ensure_startup $currentservice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue