mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-19 13:38:50 -04:00
Changed sqldump errortext (#7098)
Previous text was incorrect regarding path
This commit is contained in:
parent
b1876f0fcf
commit
b3f3d658b2
4
db.js
4
db.js
@ -3392,7 +3392,7 @@ module.exports.CreateDB = function (parent, func) {
|
|||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
child_process.exec(cmd, { cwd: backupPath, timeout: 1000*30 }, function(error, stdout, stdin) {
|
child_process.exec(cmd, { cwd: backupPath, timeout: 1000*30 }, function(error, stdout, stdin) {
|
||||||
if ((error != null) && (error != '')) {
|
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;
|
return;
|
||||||
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
||||||
|
|
||||||
@ -3407,7 +3407,7 @@ module.exports.CreateDB = function (parent, func) {
|
|||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
child_process.exec(cmd, { cwd: backupPath }, function(error, stdout, stdin) {
|
child_process.exec(cmd, { cwd: backupPath }, function(error, stdout, stdin) {
|
||||||
if ((error != null) && (error != '')) {
|
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;
|
return;
|
||||||
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
} else {parent.config.settings.autobackup.backupintervalhours = backupInterval;}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user