From 7721b1296c26b695ee8356461e18050dc165cbdb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Fri, 19 May 2017 16:59:16 +0200
Subject: [PATCH] Auto start service, refs #21550

---
 1.Base/4.configuration_webinterface/0_setup.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/1.Base/4.configuration_webinterface/0_setup.py b/1.Base/4.configuration_webinterface/0_setup.py
index 5f4fe8b4..e336ca12 100644
--- a/1.Base/4.configuration_webinterface/0_setup.py
+++ b/1.Base/4.configuration_webinterface/0_setup.py
@@ -5,10 +5,12 @@ import os
 
 
 def setup(interactive=True):
-    # Create / update admin account
     utils.log('Installing webconf')
-    cmds = list()
-    cmds.append('apt-get install python3-ubicast-webconf')
+    cmds = (
+        'apt-get install python3-ubicast-webconf',
+        'systemctl enable ubicast-webconf',
+        'systemctl start ubicast-webconf'
+    )
     settings = {
         "password": utils.get_conf('WEBCONF_PWD', 'changeme'),
         "port": utils.get_conf('WEBCONF_PORT', '9999'),
-- 
GitLab