fix config_path

This commit is contained in:
lesion
2019-06-26 17:24:16 +02:00
parent b4e0088533
commit a03d9c009b
3 changed files with 2 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
const argv = require('yargs').argv
const path = require('path')
const fs = require('fs')
const config_path = path.resolve(argv.config || '/etc/gancio_config.json')
const config_path = process.env.config_path
let config = {}
if (fs.existsSync(config_path)) {