diff --git a/action_map.yml b/action_map.yml index 4cae9976..dcda6abf 100644 --- a/action_map.yml +++ b/action_map.yml @@ -491,13 +491,13 @@ firewall: action: store_true - ### firewall_upnpinstall() - upnpinstall: + ### firewall_installupnp() + installupnp: action_help: Add upnp cron - ### firewall_upnpremove() - upnpremove: + ### firewall_removeupnp() + removeupnp: action_help: Remove upnp cron ############################# # Tools # diff --git a/yunohost_firewall.py b/yunohost_firewall.py index d810939d..62f8f59e 100644 --- a/yunohost_firewall.py +++ b/yunohost_firewall.py @@ -228,6 +228,9 @@ def firewall_installupnp(): """ os.system("touch /etc/cron.d/yunohost-firewall") os.system("echo '*/50 * * * * root yunohost firewall reload -u>>/dev/null'>/etc/cron.d/yunohost-firewall") + win_msg(_("Upnp install")) + def firewall_removeupnp(): os.system("rm /etc/cron.d/yunohost-firewall") + win_msg(_("Upnp remove"))