Do not use mysql command for setting up databases

This commit is contained in:
Andris Reinman 2016-04-25 13:59:00 +03:00
parent b93afd4f9f
commit 873d88658c
7 changed files with 94 additions and 49 deletions

14
setup/sql/init.js Normal file
View file

@ -0,0 +1,14 @@
'use strict';
let dbcheck = require('../../lib/dbcheck');
let log = require('npmlog');
log.level = 'verbose';
dbcheck(err => {
if (err) {
log.error('DB', err);
return process.exit(1);
}
return process.exit(0);
});