typos v3
silversword411 committed
Jul 19, 2022 at 17:52 UTC
a3719b2a78533e2df1085c3a5a188f706707c0ef
2 files changed
+4
-4
meshcentral.js
+3
-3
@@ -201,7 +201,7 @@ function CreateMeshCentralServer(config, args) {
201
202
// Check if translate.json is in the "meshcentral-data" folder, if so use that and translate default pages.
203
var translationFile = null, customTranslation = false;
204
- if (require('fs').existsSync(obj.path.join(obj.datapath, 'translate.json'))) { translationFile = obj.path.join(obj.datapath, 'translate.json'); console.log("Using translate.json in meshentral-data."); customTranslation = true; }
204
+ if (require('fs').existsSync(obj.path.join(obj.datapath, 'translate.json'))) { translationFile = obj.path.join(obj.datapath, 'translate.json'); console.log("Using translate.json in meshcentral-data."); customTranslation = true; }
205
if (translationFile == null) { if (require('fs').existsSync(obj.path.join(__dirname, 'translate', 'translate.json'))) { translationFile = obj.path.join(__dirname, 'translate', 'translate.json'); console.log("Using default translate.json."); } }
206
if (translationFile == null) { console.log("Unable to find translate.json."); process.exit(); return; }
207
@@ -369,7 +369,7 @@ function CreateMeshCentralServer(config, args) {
369
// Check if we need to install, start, stop, remove ourself as a background service
370
if (((obj.args.xinstall == true) || (obj.args.xuninstall == true) || (obj.args.start == true) || (obj.args.stop == true) || (obj.args.restart == true))) {
371
var env = [], xenv = ['user', 'port', 'aliasport', 'mpsport', 'mpsaliasport', 'redirport', 'exactport', 'rediraliasport', 'debug'];
372
- for (i in xenv) { if (obj.args[xenv[i]] != null) { env.push({ name: 'mesh' + xenv[i], value: obj.args[xenv[i]] }); } } // Set some args as service environement variables.
372
+ for (i in xenv) { if (obj.args[xenv[i]] != null) { env.push({ name: 'mesh' + xenv[i], value: obj.args[xenv[i]] }); } } // Set some args as service environment variables.
373
374
var serviceFilePath = null;
375
if (obj.fs.existsSync(obj.path.join(servicepath, 'winservice.js'))) { serviceFilePath = obj.path.join(servicepath, 'winservice.js'); }
@@ -757,7 +757,7 @@ function CreateMeshCentralServer(config, args) {
757
obj.syslogtcp.log("MeshCentral v" + getCurrentVersion() + " Server Start", obj.syslogtcp.LOG_INFO);
758
}
759
760
- // Check top level configuration for any unreconized values
760
+ // Check top level configuration for any unrecognized values
761
if (config) { for (var i in config) { if ((typeof i == 'string') && (i.length > 0) && (i[0] != '_') && (['settings', 'domaindefaults', 'domains', 'configfiles', 'smtp', 'letsencrypt', 'peers', 'sms', 'sendgrid', 'sendmail', 'firebase', 'firebaserelay', '$schema'].indexOf(i) == -1)) { addServerWarning('Unrecognized configuration option \"' + i + '\".', 3, [ i ]); } } }
762
763
// Read IP lists from files if applicable
meshctrl.js
+1
-1
@@ -318,7 +318,7 @@ if (args['_'].length == 0) {
318
console.log(" --id '[groupid]' - Device group identifier (or --group).");
319
}
320
console.log(" --group [groupname] - Device group name (or --id).");
321
- console.log(" --hours [hours] - Validity period in hours or 0 for infinit.");
321
+ console.log(" --hours [hours] - Validity period in hours or 0 for infinite.");
322
console.log("\r\nOptional arguments:\r\n");
323
console.log(" --flags [mode] - Mode flag for link type (0 = both, 1 = interactive only, 2 = background only)");
324
break;