From 4ac554fbb9b59f877423f318acec0f425a5ae738 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Tue, 16 Sep 2014 13:54:06 +0200 Subject: [PATCH] [enh] Enable yunohost-firewall at startup --- tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools.py b/tools.py index 19b652d13..aa175abb0 100644 --- a/tools.py +++ b/tools.py @@ -325,6 +325,9 @@ def tools_postinstall(domain, password, dyndns=False): except MoulinetteError: firewall_upnp(action=['disable']) + # Enable iptables at boot time + os.system('update-rc.d yunohost-firewall defaults') + os.system('touch /etc/yunohost/installed') msignals.display(m18n.n('yunohost_configured'), 'success')