From f4848bbcab985a1192317aabe83ed3ebbf1a7685 Mon Sep 17 00:00:00 2001 From: nolim1t Date: Wed, 8 Jul 2020 15:33:31 +0700 Subject: [PATCH] default value for LND_CONTAINER_NAME is lnd --- switch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/switch.sh b/switch.sh index 6eb5bd8..cd74b9e 100755 --- a/switch.sh +++ b/switch.sh @@ -22,6 +22,11 @@ if [ -z $JSONRPCURL ]; then JSONRPCURL="http://10.254.2.2:8332" fi +# if LND_CONTAINER_NAME doesn't exist then set it +if [ -z $LND_CONTAINER_NAME ]; then + LND_CONTAINER_NAME="lnd" +fi + while true; do IS_NEUTRINO=`grep -c 'bitcoin.node=neutrino' /lnd/lnd.conf` if [ $IS_NEUTRINO -eq 1 ]; then