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
+1 -1
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();