mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 23:43:20 -05:00
Fixed bug where custom MSH fields specified by server were not picked up by installer
This commit is contained in:
parent
4294e55fdb
commit
6c34978488
@ -103,14 +103,13 @@ if (msh.agentName) { connectArgs.push('--agentName="' + msh.agentName + '"'); }
|
||||
|
||||
function _install(parms)
|
||||
{
|
||||
var i;
|
||||
var mstr = require('fs').createWriteStream(process.execPath + '.msh', { flags: 'wb' });
|
||||
mstr.write('MeshName=' + msh.MeshName + '\n');
|
||||
mstr.write('MeshType=' + msh.MeshType + '\n');
|
||||
mstr.write('MeshID=' + msh.MeshID + '\n');
|
||||
mstr.write('ServerID=' + msh.ServerID + '\n');
|
||||
mstr.write('MeshServer=' + msh.MeshServer + '\n');
|
||||
if (msh.agentName) { mstr.write('agentName=' + msh.agentName + '\n'); }
|
||||
if (msh.meshServiceName) { mstr.write('meshServiceName=' + msh.meshServiceName + '\n'); }
|
||||
|
||||
for (i in msh)
|
||||
{
|
||||
mstr.write(i + '=' + msh[i] + '\n');
|
||||
}
|
||||
mstr.end();
|
||||
|
||||
if (parms == null) { parms = []; }
|
||||
|
Loading…
Reference in New Issue
Block a user