mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-19 14:22:08 +01:00
* on switching to CLN only restart blitzapi if needed * #4449 fix parsing of ln address
This commit is contained in:
parent
c09158ca14
commit
3b821a3c7c
@ -112,7 +112,11 @@ case $CHOICE in
|
||||
echo
|
||||
# setting value in the raspiblitz.conf
|
||||
/home/admin/config.scripts/blitz.conf.sh set lightning "cl"
|
||||
sudo systemctl restart blitzapi 2>/dev/null
|
||||
# when raspiblitz api is active - trigger a restart
|
||||
if systemctl list-unit-files --type=service | grep -Fq 'blitzapi.service'; then
|
||||
echo "# Restarting the blitzapi ..."
|
||||
sudo systemctl restart blitzapi
|
||||
fi
|
||||
echo "# OK - lightning=cl is set in /mnt/hdd/raspiblitz.conf"
|
||||
echo
|
||||
echo "Press ENTER to return to main menu."
|
||||
|
@ -162,7 +162,7 @@ if [ "$2" = "info" ]; then
|
||||
fi
|
||||
|
||||
# parse data
|
||||
lnd_address=$(echo "${ln_getInfo}" | grep "uris" -A 1 | tr -d '\n' | cut -d '"' -f4)
|
||||
lnd_address=$(echo "${ln_getInfo}" | jq -r '.uris[0]')
|
||||
lnd_tor=$(echo "${lnd_address}" | grep -c ".onion")
|
||||
lnd_sync_chain=$(echo "${ln_getInfo}" | grep "synced_to_chain" | grep "true" -c)
|
||||
lnd_sync_graph=$(echo "${ln_getInfo}" | grep "synced_to_graph" | grep "true" -c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user