Fixed welcome image not working in config.json

This commit is contained in:
Ylian Saint-Hilaire 2019-09-26 10:16:22 -07:00
parent c3bc430241
commit 77df924926
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.1-h",
"version": "0.4.1-i",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -1890,6 +1890,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
res.send(parent.configurationFiles[domain.welcomepicture]);
return;
}
// Use the configured logo picture
try { res.sendFile(obj.path.join(obj.parent.datapath, domain.welcomepicture)); return; } catch (ex) { }
}
if (parent.webPublicOverridePath && obj.fs.existsSync(obj.path.join(obj.parent.webPublicOverridePath, 'images/mainwelcome.jpg'))) {