Fixed datapath and filespath settings that did not work.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-28 17:18:39 -07:00
parent 1b7bec17ef
commit fa4e9a459e

View File

@ -94,8 +94,8 @@ function CreateMeshCentralServer(config, args) {
}
// Look to see if data and/or file path is specified
if (obj.args.datapath) { obj.datapath = obj.args.datapath; }
if (obj.args.filespath) { obj.filespath = obj.args.filespath; }
if (obj.config.settings && (typeof obj.config.settings.datapath == 'string')) { obj.datapath = obj.config.settings.datapath; }
if (obj.config.settings && (typeof obj.config.settings.filespath == 'string')) { obj.filespath = obj.config.settings.filespath; }
// Create data and files folders if needed
try { obj.fs.mkdirSync(obj.datapath); } catch (e) { }