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

Changed utilities list and fix email test (refs #25522).

parent 540ae6b4
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ def setup(interactive=True): ...@@ -8,7 +8,7 @@ def setup(interactive=True):
cmds = [ cmds = [
'apt-get clean', 'apt-get clean',
'apt-get update', 'apt-get update',
'apt-get install --yes make ipython ipython3 vim netcat git htop iotop bmon host lm-sensors pciutils nfs-client smartmontools pwgen dialog curl python3-requests', 'apt-get install --yes make ipython3 vim netcat git htop iotop bmon net-tools host lm-sensors pciutils nfs-client smartmontools pwgen curl python3-requests',
# Locale # Locale
'locale-gen en_GB.UTF-8', 'locale-gen en_GB.UTF-8',
'update-locale LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8', 'update-locale LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8',
......
...@@ -14,8 +14,10 @@ import imp ...@@ -14,8 +14,10 @@ import imp
try: try:
import spf import spf
except ImportError: except ImportError:
subprocess.call(['apt-get', '-qq', '-y', 'install', 'python3-spf']) subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'python3-spf'])
import spf import spf
if subprocess.call(['which', 'net-tools']) != 0:
subprocess.check_call(['apt-get', '-qq', '-y', 'install', 'net-tools'])
YELLOW = '\033[93m' YELLOW = '\033[93m'
GREEN = '\033[92m' GREEN = '\033[92m'
......
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