Updated Windows Agents with cert regen on reintall.

This commit is contained in:
Ylian Saint-Hilaire 2019-02-15 15:11:52 -08:00
parent 45a50db52c
commit b7df070bd2
7 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -393,10 +393,12 @@ function CreateMeshCentralServer(config, args) {
var existingUser = users[newobj._id];
if (existingUser) {
// Merge the links
for (var j in newobj.links) {
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
if (existingUser.links == null) { existingUser.links = {}; }
existingUser.links[j] = newobj.links[j];
if (typeof newobj.links == 'object') {
for (var j in newobj.links) {
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
if (existingUser.links == null) { existingUser.links = {}; }
existingUser.links[j] = newobj.links[j];
}
}
}
if (existingUser.name == 'admin') { existingUser.links = {}; }