versions() bugfix nginx
This commit is contained in:
parent
43f07ca0ae
commit
42334f4f35
@ -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 |
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user