1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added batch agent update.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-16 23:58:40 -08:00
parent 86a7fee882
commit 34f07dfdbc
6 changed files with 1833 additions and 1807 deletions

View file

@ -5362,6 +5362,12 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
break;
}
case 'updateAgents': {
// Update agents for selected devices
if (common.validateStrArray(command.nodeids, 1) == false) break; // Check nodeids
for (var i in command.nodeids) { routeCommandToNode({ action: 'msg', type: 'console', nodeid: command.nodeids[i], value: 'agentupdate' }, MESHRIGHT_ADMIN, 0); }
break;
}
case 'print': {
console.log(command.value);
break;