mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-25 21:53:14 -05:00
Fixed service console command to use correct service name, on branded agents
This commit is contained in:
parent
b200d48f56
commit
059e8b4cc4
@ -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…
x
Reference in New Issue
Block a user