Parse /etc/os-release versus lsb_release (compatibility)

This commit is contained in:
billz 2024-01-30 12:54:32 +00:00
parent 224f4ca784
commit 3ee4ea90f5

View file

@ -83,7 +83,7 @@ class Sysinfo
public function operatingSystem()
{
$os_desc = shell_exec("lsb_release -sd");
$os_desc = shell_exec("cat /etc/os-release | awk -F= '/^PRETTY_NAME/ {print $2}' | sed 's/\"//g'");
return $os_desc;
}