mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed mongodump error.
This commit is contained in:
parent
2029d9d24c
commit
397fe9fb63
1 changed files with 5 additions and 1 deletions
6
db.js
6
db.js
|
@ -1393,7 +1393,11 @@ module.exports.CreateDB = function (parent, func) {
|
|||
child_process.exec('"' + mongoDumpPath + '"', { cwd: backupPath }, function (error, stdout, stderr) {
|
||||
try {
|
||||
if ((error != null) && (error != '')) {
|
||||
func(1, "Unable to find mongodump.exe, MongoDB database auto-backup will not be performed.");
|
||||
if (parent.platform == 'win32') {
|
||||
func(1, "Unable to find mongodump.exe, MongoDB database auto-backup will not be performed.");
|
||||
} else {
|
||||
func(1, "Unable to find mongodump, MongoDB database auto-backup will not be performed.");
|
||||
}
|
||||
} else {
|
||||
func();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue