From 89d20dafc084452bd2bf04202a356feff4c49c4e Mon Sep 17 00:00:00 2001 From: abeudin Date: Tue, 24 Jun 2014 14:37:02 +0200 Subject: [PATCH] Update firewall.py --- firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall.py b/firewall.py index 4d9b8ae45..6fea1a54a 100644 --- a/firewall.py +++ b/firewall.py @@ -248,7 +248,7 @@ def firewall_upnp(action=None): firewall['uPnP']['enabled'] = True with open('/etc/cron.d/yunohost-firewall', 'w+') as f: - f.write('*/50 * * * * root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yunohost firewall reload >>/dev/null\n') + f.write('PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n*/50 * * * * root iptables -L | grep dpt:https > /dev/null 2>&1 && if [ $? != 0 ]; then yunohost firewall reload; fi\n') msignals.display(m18n.n('upnp_enabled'), 'success')