diff --git a/configure-box.sh b/configure-box.sh index f9aa1a2..3a22833 100755 --- a/configure-box.sh +++ b/configure-box.sh @@ -28,8 +28,9 @@ sed -i "s/RPCPASS/${RPCPASS}/g; " lnd/lnd.conf echo "Configuring docker-compose file" sed -i "s/RPCPASS/${RPCPASS}/g; " docker-compose.yml if [ ! -z $TESTNET ]; then - echo "Enabling testnet if TESTNET variable is set" - echo "testnet=1" >> bitcoin/bitcoin.conf + echo "Enabling testnet mode if TESTNET variable is set" + sed -i '/[test]/s/^#//g' bitcoin/bitcoin.conf + sed -i '/testnet=1/s/^#//g' bitcoin/bitcoin.conf fi rm configure-box.sh echo "Box Configuration complete"