mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
restart fail2ban instead of reload
Reloading fail2ban does not create f2b-* iptables rules.
This commit is contained in:
parent
ca92ec08f2
commit
17084a1d60
2 changed files with 1 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
systemctl restart fail2ban
|
|
|
@ -331,7 +331,7 @@ def firewall_reload(skip_upnp=False):
|
||||||
# Refresh port forwarding with UPnP
|
# Refresh port forwarding with UPnP
|
||||||
firewall_upnp(no_refresh=False)
|
firewall_upnp(no_refresh=False)
|
||||||
|
|
||||||
_run_service_command("reload", "fail2ban")
|
_run_service_command("restart", "fail2ban")
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
logger.warning(m18n.n("firewall_rules_cmd_failed"))
|
logger.warning(m18n.n("firewall_rules_cmd_failed"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue