From b1ef37db7df5075e3a0ab777eab95e0d911203ce Mon Sep 17 00:00:00 2001 From: nolim1t Date: Tue, 7 Jul 2020 14:42:41 +0700 Subject: [PATCH] Make the JSONRPCURL configurable --- switch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/switch.sh b/switch.sh index 613d4a9..e9f217c 100755 --- a/switch.sh +++ b/switch.sh @@ -16,7 +16,11 @@ # Output: /statuses/node-status-bitcoind-ready (when ready, where a service can pick it up) # Then PASSWORD=`cat /secrets/rpcpass.txt` -JSONRPCURL="http://10.254.2.2:8332" + +# If JSONRPCURL doesn't exist then set it +if [ -z $JSONRPCURL ]; then + JSONRPCURL="http://10.254.2.2:8332" +fi while true; do IS_NEUTRINO=`grep -c 'bitcoin.node=neutrino' /lnd/lnd.conf`