mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 01:08:04 +02:00
icinga2 --version: don't tell whether a Windows version is EOL
This commit is contained in:
parent
40619fb50b
commit
eeb972a3f0
@ -1444,7 +1444,7 @@ static bool ReleaseHelper(String *platformName, String *platformVersion)
|
|||||||
} else if (IsWindowsVersionOrGreater(6, 2, 0)) {
|
} else if (IsWindowsVersionOrGreater(6, 2, 0)) {
|
||||||
*platformVersion = "Server 2012";
|
*platformVersion = "Server 2012";
|
||||||
} else {
|
} else {
|
||||||
*platformVersion = "Server 2008 (EOL)";
|
*platformVersion = "Server 2008";
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -1455,11 +1455,11 @@ static bool ReleaseHelper(String *platformName, String *platformVersion)
|
|||||||
else if (IsWindows8OrGreater())
|
else if (IsWindows8OrGreater())
|
||||||
*platformVersion = "8";
|
*platformVersion = "8";
|
||||||
else if (IsWindows7SP1OrGreater())
|
else if (IsWindows7SP1OrGreater())
|
||||||
*platformVersion = "7 SP1 (EOL)";
|
*platformVersion = "7 SP1";
|
||||||
else if (IsWindows7OrGreater())
|
else if (IsWindows7OrGreater())
|
||||||
*platformVersion = "7 (EOL)";
|
*platformVersion = "7";
|
||||||
else
|
else
|
||||||
*platformVersion = "Vista (EOL)";
|
*platformVersion = "Vista";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user