mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 19:11:51 +00:00
Fixed service console command to use correct service name, on branded agents
This commit is contained in:
parent
b200d48f56
commit
059e8b4cc4
1 changed files with 9 additions and 1 deletions
|
@ -2811,7 +2811,15 @@ function createMeshCore(agent) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var s = require('service-manager').manager.getService(process.platform == 'win32' ? 'Mesh Agent' : 'meshagent');
|
var svcname = process.platform == 'win32' ? 'Mesh Agent' : 'meshagent';
|
||||||
|
try
|
||||||
|
{
|
||||||
|
svcname = require('MeshAgent').serviceName;
|
||||||
|
}
|
||||||
|
catch(x)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
var s = require('service-manager').manager.getService(svcname);
|
||||||
switch(args['_'][0].toLowerCase())
|
switch(args['_'][0].toLowerCase())
|
||||||
{
|
{
|
||||||
case 'status':
|
case 'status':
|
||||||
|
|
Loading…
Reference in a new issue