mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Reload firewall at postinstall
This commit is contained in:
parent
be570dd735
commit
7a34e267c0
1 changed files with 2 additions and 1 deletions
3
tools.py
3
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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue