Skip to content
Snippets Groups Projects
Commit 2a9ee9f7 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Setup cockpit only on Ubuntu 18.04

parent ba59e67b
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,9 @@ 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
if os.system('lsb_release -a | grep "18.04"') != 0:
utils.log('Skipping cockpit setup because OS is not Ubuntu 18.04.')
return
cmds = [
'apt install -y software-properties-common',
'add-apt-repository universe',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment