mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-24 09:22:53 +03:00
🚚 Update path to config file
This commit is contained in:
parent
5f6aadcb95
commit
fd45aa6bd1
@ -98,12 +98,14 @@ const printFileReadError = (e) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let config = {};
|
||||||
|
|
||||||
try { // Try to open and parse the YAML file
|
try { // Try to open and parse the YAML file
|
||||||
config = yaml.load(fs.readFileSync('./public/conf.yml', 'utf8'));
|
config = yaml.load(fs.readFileSync('./user-data/conf.yml', 'utf8'));
|
||||||
validate(config);
|
validate(config);
|
||||||
} catch (e) { // Something went very wrong...
|
} catch (e) { // Something went very wrong...
|
||||||
setIsValidVariable(false);
|
setIsValidVariable(false);
|
||||||
logToConsole(bigError());
|
logToConsole(bigError());
|
||||||
printFileReadError(e);
|
printFileReadError(e);
|
||||||
}
|
}
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
Loading…
Reference in New Issue
Block a user