use absolute path for db sqlite storage on setup
This commit is contained in:
parent
91e5f6595f
commit
2844e0d078
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue