Merge pull request #1509 from RaspAP/maint/os-detection

Parse /etc/os-release directly (compatibility)
This commit is contained in:
Bill Zimmerman 2024-01-30 14:23:16 +01:00 committed by GitHub
commit ccbdf8dccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}