fix: update only if node is stopped

This commit is contained in:
José Oliveira 2022-02-04 01:09:00 +00:00
parent 2da14d64b3
commit 604e300dd0
6 changed files with 6 additions and 7 deletions

View file

@ -6,7 +6,7 @@ module.exports = { setup, updateCore }
function updateCore (coinRec, isCurrentlyRunning) {
common.logger.info('Updating the Geth Ethereum wallet. This may take a minute...')
if (isCurrentlyRunning) common.es(`sudo supervisorctl stop ethereum`)
common.es(`sudo supervisorctl stop ethereum`)
common.es(`curl -#o /tmp/ethereum.tar.gz ${coinRec.url}`)
common.es(`tar -xzf /tmp/ethereum.tar.gz -C /tmp/`)