Windows service installation improvements.

This commit is contained in:
Ylian Saint-Hilaire 2020-11-28 12:58:40 -08:00
parent 593fd5cc80
commit 4b4380c2f5

View File

@ -32,6 +32,9 @@ function start() {
} else if (fs.existsSync(path.join(__dirname, '../meshcentral/meshcentral.js'))) {
runarg = path.join(__dirname, '../meshcentral/meshcentral.js');
cwd = path.join(__dirname, '../meshcentral');
} else if (fs.existsSync(path.join(__dirname, '../meshcentral.js'))) {
runarg = path.join(__dirname, '../meshcentral.js');
cwd = path.join(__dirname, '..');
}
if (runarg == null) { console.log('ERROR: Unable to find MeshCentral.js'); process.exit(255); return; }