Front facing camera (#289)

* Front facing camera

* Adding in configuration and update script
This commit is contained in:
Rafael Taranto 2019-07-05 17:17:59 +01:00 committed by Josh Harvey
parent 90de4fe24d
commit 00c4187081
10 changed files with 142 additions and 8 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env node
'use strict'
const fs = require('fs')
const options = require('../lib/options-loader')()
if (!options.opts.frontCameraDir) {
options.opts.frontCameraDir = '/opt/lamassu-server/frontcamera'
fs.writeFileSync(options.path, JSON.stringify(options.opts, null, '\t'), 'utf8')
}

View file

@ -71,6 +71,9 @@ lamassu-migrate-config >> ${LOG_FILE} 2>&1
decho "update to mnemonic"
lamassu-update-to-mnemonic --prod >> ${LOG_FILE} 2>&1
decho "update configure frontcamera"
lamassu-configure-frontcamera >> ${LOG_FILE} 2>&1
decho "update ofac sources"
lamassu-ofac-update-sources >> ${LOG_FILE} 2>&1