From bc2f25cc0edccabfa433d072dfe9fab7de9d961c Mon Sep 17 00:00:00 2001 From: nolim1t Date: Fri, 13 Mar 2020 16:48:44 +0700 Subject: [PATCH] Add Testnet support if we don't want to be #reckless --- configure-box.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure-box.sh b/configure-box.sh index eb669be..fa219b7 100755 --- a/configure-box.sh +++ b/configure-box.sh @@ -27,6 +27,10 @@ echo "Configuring invoicer rpc info" sed -i "s/RPCPASS/${RPCPASS}/g; " invoicer/invoicer.conf echo "Configuring LND rpc info" sed -i "s/RPCPASS/${RPCPASS}/g; " lnd/lnd.conf +if [ ! -z $TESTNET ]; then + echo "Enabling testnet if TESTNET variable is set" + echo "testnet=1" >> bitcoin.conf +fi rm configure-box.sh echo "Box Configuration complete"