fix: forcenew line before appending
This commit is contained in:
parent
6985c632cd
commit
86919267ab
2 changed files with 3 additions and 3 deletions
|
|
@ -31,14 +31,14 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
|||
common.logger.info(`changetype already defined, skipping...`)
|
||||
} else {
|
||||
common.logger.info(`Enabling bech32 change addresses in config file..`)
|
||||
common.es(`echo "changetype=bech32" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
common.es(`echo -e "\nchangetype=bech32" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
}
|
||||
|
||||
if (common.es(`grep "listenonion=" /mnt/blockchains/bitcoin/bitcoin.conf || true`)) {
|
||||
common.logger.info(`listenonion already defined, skipping...`)
|
||||
} else {
|
||||
common.logger.info(`Setting 'listenonion=0' in config file...`)
|
||||
common.es(`echo "listenonion=0" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
common.es(`echo -e "\nlistenonion=0" >> /mnt/blockchains/bitcoin/bitcoin.conf`)
|
||||
}
|
||||
|
||||
if (isCurrentlyRunning) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
|||
common.logger.info(`changetype already defined, skipping...`)
|
||||
} else {
|
||||
common.logger.info(`Enabling bech32 change addresses in config file..`)
|
||||
common.es(`echo "changetype=bech32" >> /mnt/blockchains/litecoin/litecoin.conf`)
|
||||
common.es(`echo -e "\nchangetype=bech32" >> /mnt/blockchains/litecoin/litecoin.conf`)
|
||||
}
|
||||
|
||||
if (isCurrentlyRunning) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue