mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-27 05:19:13 -05:00
Fixed mongodump error.
This commit is contained in:
parent
2029d9d24c
commit
397fe9fb63
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…
x
Reference in New Issue
Block a user