diff --git a/conf/fail2ban/jail.d/miab-owncloud.conf b/conf/fail2ban/jail.d/miab-owncloud.conf index 9328bd5d..edb3a949 100644 --- a/conf/fail2ban/jail.d/miab-owncloud.conf +++ b/conf/fail2ban/jail.d/miab-owncloud.conf @@ -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 diff --git a/setup/system.sh b/setup/system.sh index 1673ba13..c1e9152b 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -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