use absolute path for db sqlite storage on setup
This commit is contained in:
@@ -4,6 +4,7 @@ const log = require('../../log')
|
||||
const db = require('../models/index.js')
|
||||
const config = require('../../config')
|
||||
const settingsController = require('./settings')
|
||||
const path = require('path')
|
||||
|
||||
const setupController = {
|
||||
|
||||
@@ -14,6 +15,10 @@ const setupController = {
|
||||
return res.sendStatus(400)
|
||||
}
|
||||
|
||||
if (dbConf.storage) {
|
||||
dbConf.storage = path.resolve(process.env.cwd, dbConf.storage)
|
||||
}
|
||||
|
||||
try {
|
||||
// try to connect
|
||||
dbConf.logging = false
|
||||
|
||||
Reference in New Issue
Block a user