Auto-backup fix

Ylian Saint-Hilaire committed May 31, 2019 at 16:59 UTC 7bc5394fcc1f9d2ae65b117817b985c1a3dcca53
2 files changed +3 -3
db.js
+1 -1
@@ -729,7 +729,7 @@ module.exports.CreateDB = function (parent, func) {
729 var mongoDumpPath = 'mongodump';
730 if (parent.config.settings.autobackup && parent.config.settings.autobackup.mongodumppath) { mongoDumpPath = parent.config.settings.autobackup.mongodumppath; }
731 const child_process = require('child_process');
732 - const cmd = mongoDumpPath + ' --db \"' + dbname + '\" --archive=\"' + newBackupPath + '.archive\"';
732 + const cmd = '\"' + mongoDumpPath + '\" --db \"' + dbname + '\" --archive=\"' + newBackupPath + '.archive\"';
733 var backupProcess = child_process.exec(cmd, { cwd: backupPath }, function (error, stdout, stderr) {
734 try {
735 backupProcess = null;
public/scripts/amt-terminal-0.0.2.js
+2 -2
@@ -601,8 +601,8 @@ var CreateAmtRemoteTerminal = function (divid) {
601 }
602 }
603
604 - obj.TermSendKeys = function (keys) { if (obj.debugmode == 2) { if (obj.debugmode == 2) { console.log("TSend(" + keys.length + "): " + rstr2hex(keys)); } } obj.parent.send(keys); }
605 - obj.TermSendKey = function (key) { if (obj.debugmode == 2) { if (obj.debugmode == 2) { console.log("TSend(1): " + rstr2hex(String.fromCharCode(key))); } } obj.parent.send(String.fromCharCode(key)); }
604 + obj.TermSendKeys = function (keys) { if (obj.debugmode == 2) { console.log("TSend(" + keys.length + "): " + rstr2hex(keys)); } obj.parent.send(keys); }
605 + obj.TermSendKey = function (key) { if (obj.debugmode == 2) { console.log("TSend(1): " + rstr2hex(String.fromCharCode(key))); } obj.parent.send(String.fromCharCode(key)); }
606
607 function _TermMoveUp(linecount) {
608 var x, y;