mirror of
https://github.com/unixtensor/proxmox-ntfy.git
synced 2025-06-28 17:48:05 +00:00
Redisgned the way CPU tempature is detected and the start up notification
This commit is contained in:
@ -9,6 +9,8 @@ def package_installed(package_name: str) -> Optional[bool]:
|
||||
print(f"Package \"{package_name}\" not installed.")
|
||||
return installed
|
||||
except Exception as err:
|
||||
print(err)
|
||||
print(f"\033[31m{err}\033[0m")
|
||||
return None
|
||||
|
||||
def uname() -> str:
|
||||
return subprocess.run(["uname", "-a"], capture_output=True, text=True).stdout.strip()
|
Reference in New Issue
Block a user