1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00
AdvLabDB/advlabdb/scripts/maintain/root_update.py

17 lines
277 B
Python
Raw Normal View History

2022-05-08 19:26:25 +00:00
from ..terminal_utils import box, run
from .shared import show_update_datetime
2022-05-08 15:29:45 +00:00
def main():
show_update_datetime()
box("Update system packages")
run("sudo apt update")
run("sudo apt upgrade -y")
run("sudo reboot")
if __name__ == "__main__":
main()