mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-09-16 00:57:59 +02:00
Fail2ban for owncloud should user STORAGE_ROOT instead of hardcoded path
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = miab-owncloud
|
||||
logpath = /home/user-data/owncloud/owncloud.log
|
||||
logpath = STORAGE_ROOT/owncloud/owncloud.log
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
|
||||
@@ -299,4 +299,6 @@ cat conf/fail2ban/jail.local \
|
||||
cp -f conf/fail2ban/filter.d/* /etc/fail2ban/filter.d/
|
||||
cp -f conf/fail2ban/jail.d/* /etc/fail2ban/jail.d/
|
||||
|
||||
sed -i "s#STORAGE_ROOT#$STORAGE_ROOT#" /etc/fail2ban/jail.d/miab-owncloud.conf
|
||||
|
||||
restart_service fail2ban
|
||||
|
||||
Reference in New Issue
Block a user