add lamassu-coins script

This commit is contained in:
Josh Harvey 2017-07-07 12:57:02 +03:00
parent 44ea450ec5
commit ab58908de0
5 changed files with 254 additions and 34 deletions

View file

@ -1,8 +1,10 @@
const fs = require('fs')
const options = require('../options')
const common = require('./common')
const MOUNT_POINT = '/mnt/blockchains'
const MOUNT_POINT = options.blockchainDir
module.exports = {prepareVolume}
@ -13,7 +15,7 @@ function isMounted () {
}
function isFormatted (volumePath) {
const res = common.es(`file --dereference -s ${volumePath}`)
const res = common.es(`file --dereference -s ${volumePath}`).trim()
return res !== `${volumePath}: data`
}