Changed sqldump errortext (#7098)

Previous text was incorrect regarding path
This commit is contained in:
PTR 2025-06-09 22:05:42 +02:00 committed by GitHub
parent b1876f0fcf
commit b3f3d658b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
db.js
View File

@ -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;}
});