Split up calls into executable and parameterlist
This commit is contained in:
parent
72f0244a7c
commit
2e4ba51a58
@ -7,9 +7,9 @@ class Systemupdate(AbstractModule):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print("Running update")
|
print("Running update")
|
||||||
subprocess.call("apt update")
|
subprocess.call(["apt", "update"])
|
||||||
subprocess.call("apt upgrade")
|
subprocess.call(["apt", "upgrade"])
|
||||||
subprocess.call("apt dist-upgrade")
|
subprocess.call(["apt", "dist-upgrade"])
|
||||||
subprocess.call("apt autoremove")
|
subprocess.call(["apt", "autoremove"])
|
||||||
subprocess.call("apt autoclean")
|
subprocess.call(["apt", "autoclean"])
|
||||||
print("All update processes finished, please check output for further details.")
|
print("All update processes finished, please check output for further details.")
|
||||||
|
Loading…
Reference in New Issue
Block a user