mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More work on integrating the script-task.
This commit is contained in:
parent
3aca17ea6d
commit
1b67b84369
10 changed files with 2120 additions and 14 deletions
15
meshagent.js
15
meshagent.js
|
@ -1740,20 +1740,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
}
|
||||
case 'script-task': {
|
||||
// These command are for running regular batch jobs on the remote device
|
||||
switch (command.subaction) {
|
||||
case 'getScript': {
|
||||
console.log('getScript');
|
||||
break;
|
||||
}
|
||||
case 'clearAllPendingTasks': {
|
||||
console.log('clearAllPendingTasks');
|
||||
break;
|
||||
}
|
||||
case 'taskComplete': {
|
||||
console.log('taskComplete');
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (parent.parent.taskManager != null) { parent.parent.taskManager.agentAction(command, obj); }
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue