From 7f50d14cbeadb0cac8488c9e3c79eb776462e2aa Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 5 Jul 2021 22:30:37 +0100 Subject: [PATCH] netwok.monitor.sh debug --- home.admin/config.scripts/network.monitor.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home.admin/config.scripts/network.monitor.sh b/home.admin/config.scripts/network.monitor.sh index e45a7cc7d..533c6af65 100755 --- a/home.admin/config.scripts/network.monitor.sh +++ b/home.admin/config.scripts/network.monitor.sh @@ -20,7 +20,7 @@ source <(/home/admin/config.scripts/network.aliases.sh getvars lnd ${chain}net) if [ "$1" = "peer-status" ]; then echo "#network.monitor.sh peer-status" - # if second parameter is "cached" deliver cahed result if available + # if second parameter is "cached" deliver cached result if available if [ "$2" == "cached" ]; then cacheExists=$(ls /var/cache/raspiblitz/network.monitor.peer-status.cache 2>/dev/null | grep -c "etwork.monitor.peer-status.cache") if [ "${cacheExists}" == "1" ]; then @@ -40,7 +40,6 @@ if [ "$1" = "peer-status" ]; then else # user call peerNum=$($bitcoincli_alias getnetworkinfo 2>/dev/null | grep "connections\"" | tr -cd '[[:digit:]]') - peerNum=$( getnetworkinfo | grep "connections\"" | tr -cd '[[:digit:]]') fi if [ "${peerNum}" = "" ]; then running=0