diff --git a/modules/install/ToolsInstaller.py b/modules/install/ToolsInstaller.py index 4c6893c..a84ee23 100644 --- a/modules/install/ToolsInstaller.py +++ b/modules/install/ToolsInstaller.py @@ -1,27 +1,18 @@ -import json import platform import subprocess class ToolsInstaller: - def __init__(self): - with open("modules/install/programs.json") as config_file: - self.programs_json = json.load(config_file) - def basic_tools(self): """Install the most basic tools!""" print("Try to install basic Command-line tools") - - programs_list = " ".join(p for p in self.programs_json['basic-tools']) - subprocess.run("apt-get install" + programs_list, shell=True) - + subprocess.run("apt-get install bleachbit nano xrdp htop bash-completion dialog powertop tree", shell=True) print("Script ran to completion.") def hard_drive_tools(self): """Install tools to look up smart information from your hard-drives""" - programs_list = " ".join(p for p in self.programs_json['hard-drive']) - subprocess.run("apt-get install " + programs_list, shell=True) + subprocess.run("apt-get install smartmontools gsmartcontrol", shell=True) def docker(self): """Install the Docker service on the machine""" diff --git a/modules/install/programs.json b/modules/install/programs.json deleted file mode 100644 index 8a225c5..0000000 --- a/modules/install/programs.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "basic-tools": [ - "bleachbit", - "nano", - "xrdp", - "htop", - "bash-completion", - "dialog", - "powertop", - "tree" - ], - "hard-drive": [ - "smartmontools", - "gsmartcontrol" - ] -} \ No newline at end of file