Remove programms.json

This commit is contained in:
Marcel Schwarz 2020-03-11 00:38:42 +01:00
parent 43016d7326
commit 5fc955e405
2 changed files with 2 additions and 27 deletions

View File

@ -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"""

View File

@ -1,16 +0,0 @@
{
"basic-tools": [
"bleachbit",
"nano",
"xrdp",
"htop",
"bash-completion",
"dialog",
"powertop",
"tree"
],
"hard-drive": [
"smartmontools",
"gsmartcontrol"
]
}