1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-12 21:40:41 +00:00
AdvLabDB/scripts/root_update.py

24 lines
401 B
Python
Raw Normal View History

2022-05-03 17:02:39 +00:00
#!/usr/bin/env python3
import sys
from datetime import datetime
from pathlib import Path
script_dir = Path(__file__).parent.absolute()
sys.path.insert(0, str(script_dir))
from shared import box, run, spaced_hl
spaced_hl()
dt = datetime.now().strftime("%d.%m.%Y %H:%M:%S")
box(dt, "Update on")
box("Update system packages")
run("sudo apt update")
run("sudo apt upgrade -y")
run("sudo reboot")