Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

🚚 Update path to config file

Alicia Sykesfd45aa6bd197
diff --git a/services/config-validator.js b/services/config-validator.js
index d7377679..eeb58a3b 100644
--- a/services/config-validator.js
+++ b/services/config-validator.js
@@ -98,12 +98,14 @@ const printFileReadError = (e) => {
}
};
+let config = {};
+
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);
} catch (e) { // Something went very wrong...
setIsValidVariable(false);
logToConsole(bigError());
printFileReadError(e);
}
-module.exports = config;
\ No newline at end of file
+module.exports = config;