add lamassu-coins script
This commit is contained in:
parent
44ea450ec5
commit
ab58908de0
5 changed files with 254 additions and 34 deletions
|
|
@ -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`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue