diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index e74e24a9e..464937c69 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -166,7 +166,7 @@ if [ "$wallet_unlocked" -gt 0 ] ; then ln_alias="Wallet Locked" else ln_getInfo=$(/usr/local/bin/lncli --macaroonpath=${lnd_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert getinfo 2>/dev/null) - ln_external=$(echo "${ln_getInfo}" | grep "uris" -A 2 | tr -d '\n' | cut -d '"' -f4) + ln_external=$(echo "${ln_getInfo}" | grep "uris" -A 1 | tr -d '\n' | cut -d '"' -f4) alias_color="${color_grey}" ln_alias=$(echo "${ln_getInfo}" | grep "alias" | cut -d '"' -f4) ln_sync=$(echo "${ln_getInfo}" | grep "synced_to_chain" | grep "true" -c) diff --git a/home.admin/96addTorService.sh b/home.admin/96addTorService.sh index a8bdaa2d5..88bc4787f 100644 --- a/home.admin/96addTorService.sh +++ b/home.admin/96addTorService.sh @@ -107,6 +107,7 @@ EOF sudo rm $torrc sudo mv ./torrc $torrc sudo chmod 644 $torrc +sudo chown -R bitcoin:bitcoin /var/run/tor/ echo "" # NYX - Tor monitor tool @@ -130,7 +131,7 @@ echo "*** Waiting for TOR to boostrap ***" torIsBootstrapped=0 while [ ${torIsBootstrapped} -eq 0 ] do - echo "--- Checking ---" + echo "--- Checking 1 ---" date +%s sudo cat /mnt/hdd/tor/notice.log 2>/dev/null | grep "Bootstrapped" | tail -n 10 torIsBootstrapped=$(sudo cat /mnt/hdd/tor/notice.log 2>/dev/null | grep "Bootstrapped 100" -c) @@ -172,7 +173,7 @@ sleep 8 onionAddress="" while [ ${#onionAddress} -eq 0 ] do - echo "--- Checking ---" + echo "--- Checking 2 ---" date +%s testNetAdd="" if [ "${chain}" = "test" ];then @@ -180,7 +181,7 @@ do fi sudo cat /mnt/hdd/${network}${testNetAdd}/debug.log 2>/dev/null | grep "tor" | tail -n 10 onionAddress=$(${network}-cli getnetworkinfo | grep '"address"' | cut -d '"' -f4) - echo "If this takes too long --> CTRL+c, reboot and check manually" + echo "Can take up to 10min - if this takes longer --> CTRL+c, reboot and check manually" sleep 5 done onionPort=$(${network}-cli getnetworkinfo | grep '"port"' | tr -dc '0-9')