fix(moonraker): correctly install ubuntu 24.10 dependencies (#630)

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2025-02-09 21:12:59 +01:00
committed by GitHub
parent 033916216c
commit ed1bfcdeb4
3 changed files with 73 additions and 5 deletions

View File

@@ -539,3 +539,10 @@ def get_service_file_path(instance_type: type, suffix: str) -> Path:
file_path: Path = SYSTEMD.joinpath(f"{name}.service")
return file_path
def get_distro_name() -> str:
return check_output(["lsb_release", "-is"]).decode().strip()
def get_distro_version() -> str:
return check_output(["lsb_release", "-rs"]).decode().strip()