Fail2ban for owncloud should user STORAGE_ROOT instead of hardcoded path
This commit is contained in:
parent
eda3328e78
commit
f2da513f5a
|
@ -2,6 +2,6 @@
|
||||||
enabled = true
|
enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
filter = miab-owncloud
|
filter = miab-owncloud
|
||||||
logpath = /home/user-data/owncloud/owncloud.log
|
logpath = STORAGE_ROOT/owncloud/owncloud.log
|
||||||
maxretry = 20
|
maxretry = 20
|
||||||
findtime = 30
|
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/filter.d/* /etc/fail2ban/filter.d/
|
||||||
cp -f conf/fail2ban/jail.d/* /etc/fail2ban/jail.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
|
restart_service fail2ban
|
||||||
|
|
Loading…
Reference in New Issue