From e5f90f6c0c4d7210acc214033790937ed624b30f Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 11 Mar 2020 00:41:17 +0100 Subject: [PATCH] Add -y option to all apt-get commands --- modules/install/ToolsInstaller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/install/ToolsInstaller.py b/modules/install/ToolsInstaller.py index a84ee23..b2fc5fc 100644 --- a/modules/install/ToolsInstaller.py +++ b/modules/install/ToolsInstaller.py @@ -7,12 +7,12 @@ class ToolsInstaller: def basic_tools(self): """Install the most basic tools!""" print("Try to install basic Command-line tools") - subprocess.run("apt-get install bleachbit nano xrdp htop bash-completion dialog powertop tree", shell=True) + subprocess.run("apt-get install -y 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""" - subprocess.run("apt-get install smartmontools gsmartcontrol", shell=True) + subprocess.run("apt-get install -y smartmontools gsmartcontrol", shell=True) def docker(self): """Install the Docker service on the machine"""