Merge branch 'cherry-pick-5ed0185f' into 'develop'
Modified unix agent to get properly os on Darwin See merge request artica/pandorafms!823
This commit is contained in:
commit
e88d1c979d
|
@ -1579,6 +1579,9 @@ sub guess_os_version ($) {
|
|||
# AIX
|
||||
} elsif ($os eq 'aix') {
|
||||
$os_version = "$2.$1" if (`uname -rv` =~ /\s*(\d)\s+(\d)\s*/);
|
||||
# Darwin
|
||||
} elsif ($os eq 'darwin') {
|
||||
$os_version = `defaults read loginwindow SystemVersionStampAsString`;
|
||||
# Windows
|
||||
} elsif ($os =~ /win/i) {
|
||||
$os_version = `ver`;
|
||||
|
|
Loading…
Reference in New Issue