[enh] Reload firewall at postinstall

This commit is contained in:
Kload 2014-05-18 10:59:14 +02:00
parent be570dd735
commit 7a34e267c0

View file

@ -186,7 +186,7 @@ def tools_postinstall(domain, password, dyndns=False):
from yunohost.backup import backup_init from yunohost.backup import backup_init
from yunohost.app import app_ssowatconf from yunohost.app import app_ssowatconf
from yunohost.firewall import firewall_upnp from yunohost.firewall import firewall_upnp, firewall_reload
try: try:
with open('/etc/yunohost/installed') as f: pass with open('/etc/yunohost/installed') as f: pass
@ -282,6 +282,7 @@ def tools_postinstall(domain, password, dyndns=False):
# Enable uPnP # Enable uPnP
firewall_upnp(action=['enable']) firewall_upnp(action=['enable'])
firewall_reload()
os.system('touch /etc/yunohost/installed') os.system('touch /etc/yunohost/installed')