Added some missing folders, changed import paths, fixed stuff with new directory layout

This commit is contained in:
mrfry 2020-10-01 15:50:25 +02:00
parent c6db31221e
commit 9b0d343212
7 changed files with 2472 additions and 30 deletions

View file

@ -17,6 +17,10 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
------------------------------------------------------------------------- */
console.log('Node version: ' + process.version)
console.log('Current working directory: ' + process.cwd())
const startHTTPS = true
const isRoot = process.getuid && process.getuid() === 0
@ -35,8 +39,8 @@ const uuidv4 = require('uuid/v4') // TODO: deprecated, but imports are not suppo
const dbtools = require('./utils/dbtools.js')
const reqlogger = require('./middlewares/reqlogger.middleware.js')
const extraModulesFile = './extraModules.json'
const modulesFile = './modules.json'
const extraModulesFile = './src/extraModules.json'
const modulesFile = './src/modules.json'
const usersDBPath = 'data/dbs/users.db'
if (!utils.FileExists(usersDBPath)) {