mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Enable yunohost-firewall at startup
This commit is contained in:
parent
332efb6f21
commit
4ac554fbb9
1 changed files with 3 additions and 0 deletions
3
tools.py
3
tools.py
|
@ -325,6 +325,9 @@ def tools_postinstall(domain, password, dyndns=False):
|
||||||
except MoulinetteError:
|
except MoulinetteError:
|
||||||
firewall_upnp(action=['disable'])
|
firewall_upnp(action=['disable'])
|
||||||
|
|
||||||
|
# Enable iptables at boot time
|
||||||
|
os.system('update-rc.d yunohost-firewall defaults')
|
||||||
|
|
||||||
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