mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
update volumes and bitlocker periodically
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
3f8bbe68b0
commit
9542e77e1b
@ -5709,6 +5709,22 @@ function sendPeriodicServerUpdate(flags, force) {
|
|||||||
meshCoreObjChanged();
|
meshCoreObjChanged();
|
||||||
});
|
});
|
||||||
} catch (ex){ }
|
} catch (ex){ }
|
||||||
|
// Get Volumes and BitLocker if Windows
|
||||||
|
try {
|
||||||
|
if (process.platform == 'win32'){
|
||||||
|
if (require('computer-identifiers').volumes_promise != null){
|
||||||
|
var p = require('computer-identifiers').volumes_promise();
|
||||||
|
p.then(function (res){
|
||||||
|
meshCoreObj.volumes = res;
|
||||||
|
sendConsoleText('update-volumes');
|
||||||
|
meshCoreObjChanged();
|
||||||
|
});
|
||||||
|
}else if (require('computer-identifiers').volumes != null){
|
||||||
|
meshCoreObj.volumes = require('computer-identifiers').volumes();
|
||||||
|
meshCoreObjChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch(e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send available data right now
|
// Send available data right now
|
||||||
|
Loading…
Reference in New Issue
Block a user