mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
* on switching to CLN only restart blitzapi if needed * #4449 fix parsing of ln address
This commit is contained in:
@@ -112,7 +112,11 @@ case $CHOICE in
|
|||||||
echo
|
echo
|
||||||
# setting value in the raspiblitz.conf
|
# setting value in the raspiblitz.conf
|
||||||
/home/admin/config.scripts/blitz.conf.sh set lightning "cl"
|
/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 "# OK - lightning=cl is set in /mnt/hdd/raspiblitz.conf"
|
||||||
echo
|
echo
|
||||||
echo "Press ENTER to return to main menu."
|
echo "Press ENTER to return to main menu."
|
||||||
|
@@ -162,7 +162,7 @@ if [ "$2" = "info" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# parse data
|
# 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_tor=$(echo "${lnd_address}" | grep -c ".onion")
|
||||||
lnd_sync_chain=$(echo "${ln_getInfo}" | grep "synced_to_chain" | grep "true" -c)
|
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)
|
lnd_sync_graph=$(echo "${ln_getInfo}" | grep "synced_to_graph" | grep "true" -c)
|
||||||
|
Reference in New Issue
Block a user