fix: remove quite mode from grep
This commit is contained in:
parent
5d24b427ca
commit
ae151c741e
3 changed files with 13 additions and 13 deletions
|
|
@ -27,18 +27,18 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
|||
common.es(`rm -r /tmp/${coinRec.dir.replace('/bin', '')}`)
|
||||
common.es(`rm /tmp/bitcoin.tar.gz`)
|
||||
|
||||
if (common.es(`ps -ef | grep -q "changetype=" /mnt/blockchains/bitcoin/bitcoin.conf | { grep -v grep || true; }`)) {
|
||||
if (common.es(`ps -ef | grep "changetype=" /mnt/blockchains/bitcoin/bitcoin.conf | { grep -v grep || true; }`)) {
|
||||
common.logger.info(`changetype already defined, skipping...`)
|
||||
} else {
|
||||
common.logger.info(`Enabling bech32 change addresses in config file..`)
|
||||
common.es(`echo -e "\nchangetype=bech32" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
common.es(`echo "\nchangetype=bech32" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
}
|
||||
|
||||
if (common.es(`ps -ef | grep -q "listenonion=" /mnt/blockchains/bitcoin/bitcoin.conf | { grep -v grep || true; }`)) {
|
||||
if (common.es(`ps -ef | grep "listenonion=" /mnt/blockchains/bitcoin/bitcoin.conf | { grep -v grep || true; }`)) {
|
||||
common.logger.info(`listenonion already defined, skipping...`)
|
||||
} else {
|
||||
common.logger.info(`Setting 'listenonion=0' in config file...`)
|
||||
common.es(`echo -e "\nlistenonion=0" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
common.es(`echo "\nlistenonion=0" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
}
|
||||
|
||||
if (isCurrentlyRunning) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue