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:
parent
4960ad581a
commit
cce68922d7
2 changed files with 37 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue