fix: bitcoind install
This commit is contained in:
parent
f83ea0a06c
commit
fab755dc62
1 changed files with 7 additions and 2 deletions
|
|
@ -71,7 +71,10 @@ function processCryptos (codes) {
|
|||
) | crontab -`
|
||||
common.es(rsyncCmd)
|
||||
|
||||
_.forEach(updateCrypto, selectedCryptos)
|
||||
_.forEach(c => {
|
||||
updateCrypto(c)
|
||||
common.es(`sudo supervisorctl start ${c.code}`)
|
||||
}, selectedCryptos)
|
||||
|
||||
logger.info('Installation complete.')
|
||||
}
|
||||
|
|
@ -98,7 +101,9 @@ function setupCrypto (crypto) {
|
|||
function updateCrypto (crypto) {
|
||||
if (!common.isUpdateDependent(crypto.cryptoCode)) return
|
||||
const cryptoPlugin = plugin(crypto)
|
||||
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode))
|
||||
const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim()
|
||||
const isCurrentlyRunning = status === 'RUNNING'
|
||||
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), isCurrentlyRunning)
|
||||
}
|
||||
|
||||
function plugin (crypto) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue