mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge 89d20dafc0
into 13e29c038d
This commit is contained in:
commit
c8505f8e15
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue