FUCK! The problem is that the script must run as root. Was looking in the wrong dir.

This commit is contained in:
mmcw-dev 2018-01-06 10:55:52 -05:00
parent 74af6218e0
commit 30e8636ea8
1 changed files with 1 additions and 5 deletions

View File

@ -6,11 +6,7 @@ const path = require('path')
const sqlite3 = require('sqlite3').verbose() const sqlite3 = require('sqlite3').verbose()
const squel = require('squel') const squel = require('squel')
const DB_DIR = path.join(os.homedir(), '.config/intval3/) const DB_FILE = path.join(os.homedir(), '.intval3.db')
if (!fs.existsSync(DB_DIR)) {
fs.mkdirSync(DB_DIR)
}
const DB_FILE = path.join(os.homedir(), '.config/intval3/intval3.db')
const db = new sqlite3.Database(DB_FILE) const db = new sqlite3.Database(DB_FILE)
class DB { class DB {