forked from norman/fusionpbx-install.sh-github-mirror
Update fail2ban.sh
This commit is contained in:
@@ -30,9 +30,9 @@ cp fail2ban/nginx-dos.conf /usr/local/etc/fail2ban/filter.d/nginx-dos.conf
|
|||||||
cp fail2ban/jail.local /usr/local/etc/fail2ban/jail.local
|
cp fail2ban/jail.local /usr/local/etc/fail2ban/jail.local
|
||||||
|
|
||||||
#update config if source is being used
|
#update config if source is being used
|
||||||
#if [ .$switch_source = .true ]; then
|
if [ .$switch_source = .true ]; then
|
||||||
# sed -i' ' -e 's#var/log/freeswitch#usr/local/freeswitch/log#g' /usr/local/etc/fail2ban/jail.local
|
sed -i' ' -e 's#var/log/freeswitch#usr/local/freeswitch/log#g' /usr/local/etc/fail2ban/jail.local
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
#restart fail2ban
|
#restart fail2ban
|
||||||
service fail2ban restart
|
service fail2ban restart
|
||||||
|
|||||||
Reference in New Issue
Block a user