mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improvements to show config option in MyServer tab.
This commit is contained in:
parent
0e671bbe81
commit
3a3663bb55
6 changed files with 29 additions and 18 deletions
|
@ -3787,9 +3787,7 @@ function getConfig(createSampleConfig) {
|
|||
|
||||
// Read configuration file if present and change arguments.
|
||||
var config = {}, configFilePath = path.join(datapath, 'config.json');
|
||||
if (args.configfile) {
|
||||
configFilePath = common.joinPath(datapath, args.configfile);
|
||||
}
|
||||
if (args.configfile) { configFilePath = common.joinPath(datapath, args.configfile); }
|
||||
if (fs.existsSync(configFilePath)) {
|
||||
// Load and validate the configuration file
|
||||
try { config = require(configFilePath); } catch (ex) { console.log('ERROR: Unable to parse ' + configFilePath + '.'); return null; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue