diff --git a/meshcentral.js b/meshcentral.js index 037173b9..348ed2b6 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -172,12 +172,11 @@ function CreateMeshCentralServer(config, args) { var version = ''; if (typeof obj.args.selfupdate == 'string') { version = '@' + obj.args.selfupdate; } var child_process = require('child_process'); - console.log('npm install meshcentral' + version); - //var xxprocess = child_process.exec('npm install meshcentral' + version, { maxBuffer: Infinity, cwd: obj.path.join(__dirname, '../..') }, function (error, stdout, stderr) { }); - //xxprocess.data = ''; - //xxprocess.stdout.on('data', function (data) { xxprocess.data += data; }); - //xxprocess.stderr.on('data', function (data) { xxprocess.data += data; }); - //xxprocess.on('close', function (code) { console.log('Update completed...'); setTimeout(function () { obj.launchChildServer(startLine); }, 1000); }); + var xxprocess = child_process.exec('npm install meshcentral' + version, { maxBuffer: Infinity, cwd: obj.path.join(__dirname, '../..') }, function (error, stdout, stderr) { }); + xxprocess.data = ''; + xxprocess.stdout.on('data', function (data) { xxprocess.data += data; }); + xxprocess.stderr.on('data', function (data) { xxprocess.data += data; }); + xxprocess.on('close', function (code) { console.log('Update completed...'); setTimeout(function () { obj.launchChildServer(startLine); }, 1000); }); } else { if (error != null) { // This is an un-expected restart diff --git a/package.json b/package.json index 2a60e725..59ce817c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.2.7-c", + "version": "0.2.7-f", "keywords": [ "Remote Management", "Intel AMT",