From 59e8b0e0356acbddbed9d8357fbb9b9241cc104d Mon Sep 17 00:00:00 2001 From: Kload Date: Sat, 17 May 2014 21:48:02 +0200 Subject: [PATCH] [enh] Enable uPnP at postinstall --- tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools.py b/tools.py index 1707ec068..e3b361415 100644 --- a/tools.py +++ b/tools.py @@ -186,6 +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 try: with open('/etc/yunohost/installed') as f: pass @@ -279,6 +280,9 @@ def tools_postinstall(domain, password, dyndns=False): # Change LDAP admin password tools_adminpw(old_password='yunohost', new_password=password) + # Enable uPnP + firewall_upnp(action='enable') + os.system('touch /etc/yunohost/installed') msignals.display(m18n.n('yunohost_configured'), 'success')