1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Improved MongoDB autobackup and error handling.

This commit is contained in:
Ylian Saint-Hilaire 2020-12-28 19:25:21 -08:00
parent 4960ad581a
commit cce68922d7
2 changed files with 37 additions and 4 deletions

View file

@ -987,6 +987,9 @@ function CreateMeshCentralServer(config, args) {
return;
}
// Check if the database is capable of performing a backup
obj.db.checkBackupCapability(function (err, msg) { if (msg != null) { obj.addServerWarning(msg, true) } });
// Load configuration for database if needed
if (obj.args.loadconfigfromdb) {
var key = null;