Fixed MeshCentral self update.

Ylian Saint-Hilaire committed Jan 31, 2019 at 10:41 UTC a13acd6f0b79977243858c8b3b81c4bee96c5e9d
2 files changed +6 -7
meshcentral.js
+5 -6
@@ -172,12 +172,11 @@ function CreateMeshCentralServer(config, args) {
172 var version = '';
173 if (typeof obj.args.selfupdate == 'string') { version = '@' + obj.args.selfupdate; }
174 var child_process = require('child_process');
175 - console.log('npm install meshcentral' + version);
176 - //var xxprocess = child_process.exec('npm install meshcentral' + version, { maxBuffer: Infinity, cwd: obj.path.join(__dirname, '../..') }, function (error, stdout, stderr) { });
177 - //xxprocess.data = '';
178 - //xxprocess.stdout.on('data', function (data) { xxprocess.data += data; });
179 - //xxprocess.stderr.on('data', function (data) { xxprocess.data += data; });
180 - //xxprocess.on('close', function (code) { console.log('Update completed...'); setTimeout(function () { obj.launchChildServer(startLine); }, 1000); });
175 + var xxprocess = child_process.exec('npm install meshcentral' + version, { maxBuffer: Infinity, cwd: obj.path.join(__dirname, '../..') }, function (error, stdout, stderr) { });
176 + xxprocess.data = '';
177 + xxprocess.stdout.on('data', function (data) { xxprocess.data += data; });
178 + xxprocess.stderr.on('data', function (data) { xxprocess.data += data; });
179 + xxprocess.on('close', function (code) { console.log('Update completed...'); setTimeout(function () { obj.launchChildServer(startLine); }, 1000); });
180 } else {
181 if (error != null) {
182 // This is an un-expected restart
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.2.7-c",
3 + "version": "0.2.7-f",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",