fix: update only if node is stopped
This commit is contained in:
parent
2da14d64b3
commit
604e300dd0
6 changed files with 6 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ function setup (dataDir) {
|
|||
|
||||
function updateCore (coinRec, isCurrentlyRunning) {
|
||||
common.logger.info('Updating Litecoin Core. This may take a minute...')
|
||||
if (isCurrentlyRunning) common.es(`sudo supervisorctl stop litecoin`)
|
||||
common.es(`sudo supervisorctl stop litecoin`)
|
||||
common.es(`curl -#o /tmp/litecoin.tar.gz ${coinRec.url}`)
|
||||
common.es(`tar -xzf /tmp/litecoin.tar.gz -C /tmp/`)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue