mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Windows service installation improvements.
This commit is contained in:
parent
593fd5cc80
commit
4b4380c2f5
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ function start() {
|
||||||
} else if (fs.existsSync(path.join(__dirname, '../meshcentral/meshcentral.js'))) {
|
} else if (fs.existsSync(path.join(__dirname, '../meshcentral/meshcentral.js'))) {
|
||||||
runarg = path.join(__dirname, '../meshcentral/meshcentral.js');
|
runarg = path.join(__dirname, '../meshcentral/meshcentral.js');
|
||||||
cwd = path.join(__dirname, '../meshcentral');
|
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; }
|
if (runarg == null) { console.log('ERROR: Unable to find MeshCentral.js'); process.exit(255); return; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue