mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Changed sqldump errortext (#7098)
Previous text was incorrect regarding path
This commit is contained in:
4
db.js
4
db.js
@@ -3392,7 +3392,7 @@ module.exports.CreateDB = function (parent, func) {
|
||||
const child_process = require('child_process');
|
||||
child_process.exec(cmd, { cwd: backupPath, timeout: 1000*30 }, function(error, stdout, stdin) {
|
||||
if ((error != null) && (error != '')) {
|
||||
func(1, "Unable to find mysqldump tool, backup will not be performed. Command tried: " + cmd);
|
||||
func(1, "mysqldump error, backup will not be performed. Command tried: " + cmd);
|
||||
return;
|
||||
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
||||
|
||||
@@ -3407,7 +3407,7 @@ module.exports.CreateDB = function (parent, func) {
|
||||
const child_process = require('child_process');
|
||||
child_process.exec(cmd, { cwd: backupPath }, function(error, stdout, stdin) {
|
||||
if ((error != null) && (error != '')) {
|
||||
func(1, "Unable to find pg_dump tool, backup will not be performed. Command tried: " + cmd);
|
||||
func(1, "pg_dump error, backup will not be performed. Command tried: " + cmd);
|
||||
return;
|
||||
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user