mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
detect open channels on switch
This commit is contained in:
@@ -61,7 +61,7 @@ lndInstalled=$(systemctl status lnd.service | grep loaded -c)
|
|||||||
if [ ${lndInstalled} -gt 0 ]; then
|
if [ ${lndInstalled} -gt 0 ]; then
|
||||||
|
|
||||||
echo "check for open channels"
|
echo "check for open channels"
|
||||||
openChannels=$(lncli listchannels 2>/dev/null | grep chan_id -c)
|
openChannels=$(sudo -u bitcoin lncli listchannels 2>/dev/null | grep chan_id -c)
|
||||||
if [ ${openChannels} -gt 0 ]; then
|
if [ ${openChannels} -gt 0 ]; then
|
||||||
echo "FAIL - You have still open channels and could loose funds !! - close those first with lncli closeallchannels"
|
echo "FAIL - You have still open channels and could loose funds !! - close those first with lncli closeallchannels"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user