From fd39c61d23b0e61771d7f2be87b32530d58a5344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Fri, 18 Mar 2022 15:13:39 +0000 Subject: [PATCH] fix: force new line on dash.conf --- lib/blockchain/dash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/blockchain/dash.js b/lib/blockchain/dash.js index cb0c8aa2..c8154e7d 100644 --- a/lib/blockchain/dash.js +++ b/lib/blockchain/dash.js @@ -34,7 +34,7 @@ function updateCore (coinRec, isCurrentlyRunning) { common.logger.info(`enablecoinjoin already defined, skipping...`) } else { 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`)) { @@ -44,14 +44,14 @@ function updateCore (coinRec, isCurrentlyRunning) { common.logger.info(`coinjoinautostart already defined, skipping...`) } else { 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`)) { common.logger.info(`Switching from 'LiteMode' to 'DisableGovernance'...`) common.es(`sed -i 's/litemode/disablegovernance/g' /mnt/blockchains/dash/dash.conf`) } else { - common.es(`echo "disablegovernance already defined, skipping..."`) + common.es(`echo -e "\ndisablegovernance already defined, skipping..."`) } if (isCurrentlyRunning) {