mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +02:00
zty with user bitcoin
This commit is contained in:
@@ -273,7 +273,7 @@ clnRunning=$(systemctl status ${netprefix}lightningd.service 2>/dev/null | grep
|
|||||||
echo "clnActive=${clnRunning}"
|
echo "clnActive=${clnRunning}"
|
||||||
if [ ${clnRunning} -eq 1 ]; then
|
if [ ${clnRunning} -eq 1 ]; then
|
||||||
|
|
||||||
clnInfo=$(${netprefix}lightning-cli getinfo)
|
clnInfo=$(sudo -u bitcoin lightning-cli getinfo)
|
||||||
clnBlockHeight=$(echo "${clnInfo}" | jq -r '.blockheight' | tr -cd '[[:digit:]]')
|
clnBlockHeight=$(echo "${clnInfo}" | jq -r '.blockheight' | tr -cd '[[:digit:]]')
|
||||||
echo "clnBlockHeight=${clnBlockHeight}"
|
echo "clnBlockHeight=${clnBlockHeight}"
|
||||||
echo "# TODO: cln status statistics"
|
echo "# TODO: cln status statistics"
|
||||||
|
Reference in New Issue
Block a user