From 061d9903ca5628f5640f9cc7df1500859412bee8 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 24 Aug 2018 13:29:33 +0200 Subject: [PATCH] force user bitcoin on cli --- home.admin/96addTorService.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/96addTorService.sh b/home.admin/96addTorService.sh index 88bc478..0e5ac37 100644 --- a/home.admin/96addTorService.sh +++ b/home.admin/96addTorService.sh @@ -180,11 +180,11 @@ do testNetAdd="/testnet3" 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) + onionAddress=$(sudo -u bitcoin ${network}-cli getnetworkinfo | grep '"address"' | cut -d '"' -f4) 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') +onionPort=$(sudo -u bitcoin ${network}-cli getnetworkinfo | grep '"port"' | tr -dc '0-9') echo "Your Chain Network Onion Address is: ${onionAddress}:${onionPort}" echo ""