diff --git a/1.Base/4.cockpit/0_setup.py b/1.Base/4.cockpit/0_setup.py index 1eca2311155ae6db63c5c67ea2a9c0b2add73bb0..2aac7dfdc75ceed11e4172a6bae764959c9cdce2 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',