Browse Source

Update testnet mode function

patch-1
BT 5 years ago
committed by GitHub
parent
commit
f2b3b0a01f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      configure-box.sh

5
configure-box.sh

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

Loading…
Cancel
Save