Fail2ban for owncloud should user STORAGE_ROOT instead of hardcoded path

This commit is contained in:
Michael Kroes 2016-04-10 13:02:51 +02:00
parent eda3328e78
commit f2da513f5a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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