From 5fc955e405898d8b4e02bbbd93261d2c1e2d59e4 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 11 Mar 2020 00:38:42 +0100 Subject: [PATCH] Remove programms.json --- modules/install/ToolsInstaller.py | 13 ++----------- modules/install/programs.json | 16 ---------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 modules/install/programs.json 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