force user bitcoin on cli

This commit is contained in:
rootzoll 2018-08-24 13:29:33 +02:00
parent 88563386fb
commit 061d9903ca

View File

@ -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 ""