fix: access crypto code properly and add admin permissions for supervisor cmds
This commit is contained in:
parent
db90525196
commit
01275a8c9b
3 changed files with 5 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ function setup (dataDir) {
|
|||
|
||||
function updateCore (coinRec) {
|
||||
common.logger.info('Updating Bitcoin Core. This may take a minute.')
|
||||
common.es(`supervisorctl stop bitcoin`)
|
||||
common.es(`sudo supervisorctl stop bitcoin`)
|
||||
common.es(`curl -#o /tmp/bitcoin.tar.gz ${coinRec.url}`)
|
||||
common.es(`tar -xzf /tmp/bitcoin.tar.gz -C /tmp/`)
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ function updateCore (coinRec) {
|
|||
common.es(`rm /tmp/bitcoin.tar.gz`)
|
||||
|
||||
common.logger.info('Starting wallet...')
|
||||
common.es(`supervisorctl start bitcoin`)
|
||||
common.es(`sudo supervisorctl start bitcoin`)
|
||||
|
||||
common.logger.info('Bitcoin Core is updated!')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue