Skip to content
Snippets Groups Projects
Commit ffdff52c authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix netcapture installation | refs #29840

parent e20afabf
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
import utils
import json
import random
......@@ -43,11 +44,17 @@ def write_miris_conf():
def setup(interactive=True):
if not utils.supported_platform():
utils.log("unsupported os", error=True)
exit(1)
dist, _ = utils.dist()
# Run commands
cmds = [
'apt-get install --yes apt-transport-https ca-certificates curl software-properties-common',
'curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -',
'add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"',
'apt-get install --yes apt-transport-https ca-certificates curl gnupg-agent lsb-release software-properties-common',
f'curl -fsSL https://download.docker.com/linux/{dist}/gpg | apt-key add -',
f'add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/{dist} $(lsb_release -cs) stable"',
'apt-get update && apt-get install --yes docker-ce',
'apt-get install --yes python3-miris-netcapture',
]
......
......@@ -22,7 +22,7 @@ def get_dir(file_path: str) -> str:
def dist() -> tuple:
"""Return distribution name and version).
"""Return distribution name and version.
:return: Distribution name and version
:rtype: tuple
......
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