mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added temporary agent update option.
This commit is contained in:
parent
9838b52f8a
commit
914d2414b6
2 changed files with 4 additions and 0 deletions
|
@ -1878,6 +1878,8 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
// Check if we need to update this agent, return true if agent binary update required.
|
||||
// Return 0 is no update needed, 1 update using native system, 2 update using meshcore system
|
||||
function compareAgentBinaryHash(agentExeInfo, agentHash) {
|
||||
// If this is a temporary agent and the server is set to not update temporary agents, don't update the agent.
|
||||
if ((obj.agentInfo.capabilities & 0x20) && (args.temporaryagentupdate === false)) return 0;
|
||||
// If we are testing the agent update system, always return true
|
||||
if ((args.agentupdatetest === true) || (args.agentupdatetest === 1)) return 1;
|
||||
if (args.agentupdatetest === 2) return 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue