fix: include starting state on install script
This commit is contained in:
parent
98b98c8ddb
commit
0859b3b938
1 changed files with 4 additions and 1 deletions
|
|
@ -103,8 +103,11 @@ function setupCrypto (crypto) {
|
||||||
function updateCrypto (crypto) {
|
function updateCrypto (crypto) {
|
||||||
if (!common.isUpdateDependent(crypto.cryptoCode)) return
|
if (!common.isUpdateDependent(crypto.cryptoCode)) return
|
||||||
const cryptoPlugin = plugin(crypto)
|
const cryptoPlugin = plugin(crypto)
|
||||||
|
// TODO: we need to refactor the way we retrieve this status, p.e Monero uses two
|
||||||
|
// services with specific names, so each coin should have its implementation.
|
||||||
|
// Currently, it's not a breaking change because only BTC is update dependent
|
||||||
const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim()
|
const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim()
|
||||||
const isCurrentlyRunning = status === 'RUNNING'
|
const isCurrentlyRunning = _.includes(status, ['RUNNING', 'STARTING'])
|
||||||
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), isCurrentlyRunning)
|
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), isCurrentlyRunning)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue