[enh] Enable yunohost-firewall at startup

This commit is contained in:
Alexis Gavoty 2014-09-16 13:54:06 +02:00
parent 332efb6f21
commit 4ac554fbb9

View file

@ -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')