Add guest user with same ssh keys as root and fix nodeinfo not waiting for clightning to warm up
This commit is contained in:
parent
eca9864cf3
commit
ac2be00c7f
4 changed files with 33 additions and 10 deletions
|
|
@ -1,9 +1,15 @@
|
|||
sleep 5
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
OUTFILE=/var/lib/nodeinfo.nix
|
||||
|
||||
BITCOIND_ONION=$(cat /var/lib/tor/onion/bitcoind/hostname)
|
||||
CLIGHTNING_ID=$(sudo -u clightning lightning-cli getinfo | jq -r '.id')
|
||||
|
||||
rm -f $OUTFILE
|
||||
{
|
||||
echo \{
|
||||
echo " bitcoind_onion = \"$(cat /var/lib/tor/onion/bitcoind/hostname)\";"
|
||||
echo " clightning_id = \"$(sudo -u clightning lightning-cli getinfo | jq -r '.id')\";"
|
||||
echo " bitcoind_onion = \"$BITCOIND_ONION\";"
|
||||
echo " clightning_id = \"$CLIGHTNING_ID\";"
|
||||
echo \}
|
||||
} > $OUTFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue