diff --git a/src/install.js b/src/install.js index 795656d8f1..003054541e 100644 --- a/src/install.js +++ b/src/install.js @@ -328,8 +328,7 @@ var async = require('async'), }, function (next) { // Default plugins - var Plugins = require('./plugins'), - db = require('./database.js'); + var Plugins = require('./plugins'); winston.info('Enabling default plugins'); @@ -350,7 +349,9 @@ var async = require('async'), }, next); }, function (next) { - var db = require('./src/database').init(function(err) { + var db = require('./database.js'); + + db.init(function(err) { if (!err) { db.setObjectField('widgets:global', 'footer', "[{\"widget\":\"html\",\"data\":{\"html\":\"\",\"title\":\"\",\"container\":\"\"}}]", next); }