mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Add comment
This commit is contained in:
parent
cac8d54a37
commit
85ac83b7e1
1 changed files with 15 additions and 0 deletions
|
@ -233,6 +233,14 @@ def firewall_installupnp():
|
||||||
|
|
||||||
|
|
||||||
def firewall_removeupnp():
|
def firewall_removeupnp():
|
||||||
|
"""
|
||||||
|
Remove upnp cron
|
||||||
|
Keyword arguments:
|
||||||
|
None
|
||||||
|
Return
|
||||||
|
None
|
||||||
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.remove("/etc/cron.d/yunohost-firewall")
|
os.remove("/etc/cron.d/yunohost-firewall")
|
||||||
except:
|
except:
|
||||||
|
@ -242,6 +250,13 @@ def firewall_removeupnp():
|
||||||
|
|
||||||
|
|
||||||
def firewall_stop():
|
def firewall_stop():
|
||||||
|
"""
|
||||||
|
Stop firewall
|
||||||
|
Keyword arguments:
|
||||||
|
None
|
||||||
|
Return
|
||||||
|
None
|
||||||
|
"""
|
||||||
|
|
||||||
os.system ("iptables -P INPUT ACCEPT")
|
os.system ("iptables -P INPUT ACCEPT")
|
||||||
os.system ("iptables -F")
|
os.system ("iptables -F")
|
||||||
|
|
Loading…
Add table
Reference in a new issue