Add default yes parameter

This commit is contained in:
Marcel Schwarz 2020-03-05 19:56:54 +01:00
parent 2e4ba51a58
commit 5d7fde2848

View File

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