From a65f90db958db1d4925ec5199c85bffd990035e0 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Tue, 16 Sep 2014 14:00:11 +0200 Subject: [PATCH] [fix] Do not reload iptables every 50 minutes --- firewall.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firewall.py b/firewall.py index c7b0aae15..9abea8ec2 100644 --- a/firewall.py +++ b/firewall.py @@ -235,8 +235,7 @@ def firewall_upnp(action=None): with open('/etc/cron.d/yunohost-firewall', 'w+') as f: f.write('PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ - \n*/50 * * * * root yunohost firewall upnp reload >>/dev/null \ - \n*/50 * * * * root iptables -L | grep ^fail2ban-dovecot > /dev/null 2>&1; if [ $? != 0 ]; then yunohost firewall reload; fi >>/dev/null') + \n*/50 * * * * root yunohost firewall upnp reload >>/dev/null') msignals.display(m18n.n('upnp_enabled'), 'success')