mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
New agentUpdateSystem setting to force meshcore agent update.
This commit is contained in:
parent
00001e23bc
commit
a5ec5f60c9
2 changed files with 5 additions and 3 deletions
|
@ -1915,6 +1915,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
if (((agentExeInfo.id == 16) || (agentExeInfo.id == 29)) && (parent.parent.meshAgentBinaries[10005].hash == agentHash)) return 0;
|
||||
|
||||
// No match, update the agent.
|
||||
if (args.agentupdatesystem === 2) return 2; // If set, force a meshcore update.
|
||||
// NOTE: Windows agents with no commit dates may have bad native update system, so use meshcore system instead.
|
||||
// NOTE: Windows agents with commit date prior to 1612740413000 did not kill all "meshagent.exe" processes and update could fail as a result executable being locked, meshcore system will do this.
|
||||
if (((obj.AgentCommitDate == null) || (obj.AgentCommitDate < 1612740413000)) && ((agentExeInfo.id == 3) || (agentExeInfo.id == 4))) return 2; // For older Windows agents, use the meshcore update technique.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue