linux-tools/modules/systemupdate/__init__.py
Marcel Schwarz e633965a1a Remove classes from easy modules
* bashrc
* hacker
* helloworld
* installer
* update
* teamspeak
2020-08-02 00:55:48 +02:00

17 lines
416 B
Python

import subprocess
def run():
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.")
functions = {
"run": run
}