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
2022-05-03 19:02:39 +02:00

23 lines
401 B
Python

#!/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")