Merge pull request #1165 from josepfo/fix/btc-conf-line-overlap
fix: force new line before appending
This commit is contained in:
commit
6c5060806a
3 changed files with 6 additions and 6 deletions
|
|
@ -31,14 +31,14 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
||||||
common.logger.info(`changetype already defined, skipping...`)
|
common.logger.info(`changetype already defined, skipping...`)
|
||||||
} else {
|
} else {
|
||||||
common.logger.info(`Enabling bech32 change addresses in config file..`)
|
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`)) {
|
if (common.es(`grep "listenonion=" /mnt/blockchains/bitcoin/bitcoin.conf || true`)) {
|
||||||
common.logger.info(`listenonion already defined, skipping...`)
|
common.logger.info(`listenonion already defined, skipping...`)
|
||||||
} else {
|
} else {
|
||||||
common.logger.info(`Setting 'listenonion=0' in config file...`)
|
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) {
|
if (isCurrentlyRunning) {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
||||||
common.logger.info(`enablecoinjoin already defined, skipping...`)
|
common.logger.info(`enablecoinjoin already defined, skipping...`)
|
||||||
} else {
|
} else {
|
||||||
common.logger.info(`Enabling CoinJoin in config file...`)
|
common.logger.info(`Enabling CoinJoin in config file...`)
|
||||||
common.es(`echo "enablecoinjoin=1" >> /mnt/blockchains/dash/dash.conf`)
|
common.es(`echo -e "\nenablecoinjoin=1" >> /mnt/blockchains/dash/dash.conf`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (common.es(`grep "privatesendautostart=" /mnt/blockchains/dash/dash.conf || true`)) {
|
if (common.es(`grep "privatesendautostart=" /mnt/blockchains/dash/dash.conf || true`)) {
|
||||||
|
|
@ -44,14 +44,14 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
||||||
common.logger.info(`coinjoinautostart already defined, skipping...`)
|
common.logger.info(`coinjoinautostart already defined, skipping...`)
|
||||||
} else {
|
} else {
|
||||||
common.logger.info(`Enabling CoinJoin AutoStart in config file...`)
|
common.logger.info(`Enabling CoinJoin AutoStart in config file...`)
|
||||||
common.es(`echo "coinjoinautostart=1" >> /mnt/blockchains/dash/dash.conf`)
|
common.es(`echo -e "\ncoinjoinautostart=1" >> /mnt/blockchains/dash/dash.conf`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (common.es(`grep "litemode=" /mnt/blockchains/dash/dash.conf || true`)) {
|
if (common.es(`grep "litemode=" /mnt/blockchains/dash/dash.conf || true`)) {
|
||||||
common.logger.info(`Switching from 'LiteMode' to 'DisableGovernance'...`)
|
common.logger.info(`Switching from 'LiteMode' to 'DisableGovernance'...`)
|
||||||
common.es(`sed -i 's/litemode/disablegovernance/g' /mnt/blockchains/dash/dash.conf`)
|
common.es(`sed -i 's/litemode/disablegovernance/g' /mnt/blockchains/dash/dash.conf`)
|
||||||
} else {
|
} else {
|
||||||
common.es(`echo "disablegovernance already defined, skipping..."`)
|
common.es(`echo -e "\ndisablegovernance already defined, skipping..."`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCurrentlyRunning) {
|
if (isCurrentlyRunning) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function updateCore (coinRec, isCurrentlyRunning) {
|
||||||
common.logger.info(`changetype already defined, skipping...`)
|
common.logger.info(`changetype already defined, skipping...`)
|
||||||
} else {
|
} else {
|
||||||
common.logger.info(`Enabling bech32 change addresses in config file..`)
|
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) {
|
if (isCurrentlyRunning) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue