nix-bitcoin/pkgs/nodeinfo.sh
2018-11-20 22:14:40 +00:00

9 lines
171 B
Bash

sleep 5
OUTFILE=/var/lib/nodeinfo.nix
rm -f $OUTFILE
{
echo \{
echo " bitcoind_onion = \"$(cat /var/lib/tor/onion/bitcoind/hostname)\";"
echo \}
} > $OUTFILE