From 5d7fde28484e8accdef7f9e40de14bd02f08e815 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Thu, 5 Mar 2020 19:56:54 +0100 Subject: [PATCH] Add default yes parameter --- modules/systemupdate/systemupdate.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/systemupdate/systemupdate.py b/modules/systemupdate/systemupdate.py index f148640..9e9d072 100644 --- a/modules/systemupdate/systemupdate.py +++ b/modules/systemupdate/systemupdate.py @@ -7,9 +7,9 @@ class Systemupdate(AbstractModule): def run(self): print("Running update") - subprocess.call(["apt", "update"]) - subprocess.call(["apt", "upgrade"]) - subprocess.call(["apt", "dist-upgrade"]) - subprocess.call(["apt", "autoremove"]) - subprocess.call(["apt", "autoclean"]) + subprocess.call(["apt", "update", "-y"]) + subprocess.call(["apt", "upgrade", "-y"]) + subprocess.call(["apt", "dist-upgrade", "-y"]) + subprocess.call(["apt", "autoremove", "-y"]) + subprocess.call(["apt", "autoclean", "-y"]) print("All update processes finished, please check output for further details.")