From 7a34e267c0f204011df9033ba5d5d8dbfaf675d2 Mon Sep 17 00:00:00 2001 From: Kload Date: Sun, 18 May 2014 10:59:14 +0200 Subject: [PATCH] [enh] Reload firewall at postinstall --- tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools.py b/tools.py index ef64b9f01..689311d76 100644 --- a/tools.py +++ b/tools.py @@ -186,7 +186,7 @@ def tools_postinstall(domain, password, dyndns=False): from yunohost.backup import backup_init from yunohost.app import app_ssowatconf - from yunohost.firewall import firewall_upnp + from yunohost.firewall import firewall_upnp, firewall_reload try: with open('/etc/yunohost/installed') as f: pass @@ -282,6 +282,7 @@ def tools_postinstall(domain, password, dyndns=False): # Enable uPnP firewall_upnp(action=['enable']) + firewall_reload() os.system('touch /etc/yunohost/installed')