mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Cron install/uninstall
This commit is contained in:
parent
80ff31022f
commit
eb39a80db0
2 changed files with 7 additions and 4 deletions
|
@ -491,13 +491,13 @@ firewall:
|
||||||
action: store_true
|
action: store_true
|
||||||
|
|
||||||
|
|
||||||
### firewall_upnpinstall()
|
### firewall_installupnp()
|
||||||
upnpinstall:
|
installupnp:
|
||||||
action_help: Add upnp cron
|
action_help: Add upnp cron
|
||||||
|
|
||||||
|
|
||||||
### firewall_upnpremove()
|
### firewall_removeupnp()
|
||||||
upnpremove:
|
removeupnp:
|
||||||
action_help: Remove upnp cron
|
action_help: Remove upnp cron
|
||||||
#############################
|
#############################
|
||||||
# Tools #
|
# Tools #
|
||||||
|
|
|
@ -228,6 +228,9 @@ def firewall_installupnp():
|
||||||
"""
|
"""
|
||||||
os.system("touch /etc/cron.d/yunohost-firewall")
|
os.system("touch /etc/cron.d/yunohost-firewall")
|
||||||
os.system("echo '*/50 * * * * root yunohost firewall reload -u>>/dev/null'>/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():
|
def firewall_removeupnp():
|
||||||
os.system("rm /etc/cron.d/yunohost-firewall")
|
os.system("rm /etc/cron.d/yunohost-firewall")
|
||||||
|
win_msg(_("Upnp remove"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue