HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //etc/cron.weekly/fail2ban
#!/bin/sh
#
# If fail2ban is using sqlite (not the default in TurnKey) periodically vacuum
# database to prevent it growing endlessly - see Debian Bug #1010011
# - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010011

sqlite="/usr/bin/sqlite3"
database="/var/lib/fail2ban/fail2ban.sqlite3"

[ -x $sqlite ] && [ -f $database ] || exit 0

$sqlite $database "VACUUM;"