From 0f50be0723662d6224c0177046c5aac26bb3b854 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Wed, 30 Jan 2019 18:01:39 +0100
Subject: [PATCH] Do not setup cockpit on Ubuntu 16.04.

---
 1.Base/4.cockpit/0_setup.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/1.Base/4.cockpit/0_setup.py b/1.Base/4.cockpit/0_setup.py
index 1eca2311..2aac7dfd 100644
--- a/1.Base/4.cockpit/0_setup.py
+++ b/1.Base/4.cockpit/0_setup.py
@@ -4,6 +4,12 @@ import os
 
 
 def setup(interactive=False):
+    if os.path.exists('/etc/lsb-release'):
+        with open('/etc/lsb-release', 'r') as fo:
+            content = fo.read()
+        if '16.04' in content:
+            utils.log('Skipping cockpit setup because OS is Ubuntu 16.04.')
+            return
     cmds = [
         'apt install -y software-properties-common',
         'add-apt-repository universe',
-- 
GitLab