mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Do not reload iptables every 50 minutes
This commit is contained in:
parent
4ac554fbb9
commit
a65f90db95
1 changed files with 1 additions and 2 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue