Skip to content

Node.js based forum software built for the modern web

skip to the launch screen if config is set but installer is still active

psychobunny9b53cdfcc060
diff --git a/install/web.js b/install/web.js
index 745e1d2063..9739701de4 100644
--- a/install/web.js
+++ b/install/web.js
@@ -63,11 +63,17 @@ function welcome(req, res) {
});
});
- res.render('install/index', {
- databases: databases,
- error: res.locals.error ? true : false,
- success: res.locals.success ? true : false,
- values: req.body
+ fs.readFile(path.join(__dirname, '../config.json'), function(err, file) {
+ if (file) {
+ res.locals.success = true;
+ }
+
+ res.render('install/index', {
+ databases: databases,
+ error: res.locals.error ? true : false,
+ success: res.locals.success ? true : false,
+ values: req.body
+ });
});
}