mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Initial merged script-task into the agent.
This commit is contained in:
		
							parent
							
								
									115d80113a
								
							
						
					
					
						commit
						3aca17ea6d
					
				
					 3 changed files with 438 additions and 10 deletions
				
			
		
							
								
								
									
										18
									
								
								meshagent.js
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								meshagent.js
									
										
									
									
									
								
							|  | @ -1738,8 +1738,22 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { | |||
|                     try { obj.send(JSON.stringify({ action: 'amtconfig', user: '**MeshAgentApfTunnel**', pass: cookie })); } catch (ex) { } | ||||
|                     break; | ||||
|                 } | ||||
|                 case 'scriptTask': { | ||||
|                     // TODO
 | ||||
|                 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; | ||||
|                         } | ||||
|                     } | ||||
|                     break; | ||||
|                 } | ||||
|                 default: { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue