versions() bugfix nginx

This commit is contained in:
Sebastian Hildebrandt 2018-12-29 17:20:10 +01:00
parent 43f07ca0ae
commit 42334f4f35
3 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,7 @@ Other changes
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 3.53.1 | 2018-12-29 | `versions()` bug fix nginx version |
| 3.53.0 | 2018-12-29 | `versions()` added perl, python, gcc |
| 3.52.7 | 2018-12-29 | `versions()` bug fix macOS detection |
| 3.52.6 | 2018-12-28 | `versions()` bug fix macOS |

View File

@ -77,6 +77,7 @@ async function cpu() {
(last 7 major and minor version releases)
- Version 3.53.0: `versions()` added perl, python, gcc
- Version 3.52.0: `cpu()` added physical cores, processors, socket type
- Version 3.51.0: `processLoad()` added for windows
- Version 3.50.0: `services()` added possibility to specify ALL services "*" for linux/win

View File

@ -395,7 +395,7 @@ function versions(callback) {
functionProcessed();
});
}
exec('nginx -v', function (error, stdout) {
exec('nginx -v 2>&1', function (error, stdout) {
if (!error) {
const nginx = stdout.toString().split('\n')[0] || '';
result.nginx = (nginx.toLowerCase().split('/')[1] || '').trim();