Marcel Schwarz
6061a7d224
dynamic loading was removed to have an overall better flow control, Remove Abstract Module, clear out module __init__.py
14 lines
440 B
Python
14 lines
440 B
Python
import subprocess
|
|
|
|
|
|
class Systemupdate:
|
|
|
|
def run(self):
|
|
print("Running update")
|
|
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.")
|