mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Enable uPnP at postinstall
This commit is contained in:
parent
9f23945ed7
commit
59e8b0e035
1 changed files with 4 additions and 0 deletions
4
tools.py
4
tools.py
|
@ -186,6 +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
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('/etc/yunohost/installed') as f: pass
|
with open('/etc/yunohost/installed') as f: pass
|
||||||
|
@ -279,6 +280,9 @@ def tools_postinstall(domain, password, dyndns=False):
|
||||||
# Change LDAP admin password
|
# Change LDAP admin password
|
||||||
tools_adminpw(old_password='yunohost', new_password=password)
|
tools_adminpw(old_password='yunohost', new_password=password)
|
||||||
|
|
||||||
|
# Enable uPnP
|
||||||
|
firewall_upnp(action='enable')
|
||||||
|
|
||||||
os.system('touch /etc/yunohost/installed')
|
os.system('touch /etc/yunohost/installed')
|
||||||
|
|
||||||
msignals.display(m18n.n('yunohost_configured'), 'success')
|
msignals.display(m18n.n('yunohost_configured'), 'success')
|
||||||
|
|
Loading…
Add table
Reference in a new issue