Skip to content

Commit

Permalink
Merge pull request #20 from dsbaars/umbrel-050-fix
Browse files Browse the repository at this point in the history
Fix Umbrel detection and make it work with 0.5.0
  • Loading branch information
RooSoft authored Jun 20, 2022
2 parents 569c217 + 3a998ff commit ad1e12b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions igniter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ IFS=, eval 'HOPS="${pub_keys[*]}"'

# If an umbrel, use docker, else call lncli directly. Also setup dependencies accordingly.
LNCLI="lncli"
if uname -a | grep umbrel > /dev/null; then
LNCLI="docker exec -i lnd lncli"
if [ -d "$HOME/umbrel" ] ; then
# Umbrel < 0.5.x
if [ "docker ps -q -f name=^lnd$" ] ; then
LNCLI="docker exec -i lnd lncli"
# Umbrel >= 0.5.x
else
LNCLI="$HOME/umbrel/scripts/app compose lightning exec lnd lncli"
fi
dependencies="cat jq"
else
dependencies="cat jq lncli"
Expand Down

0 comments on commit ad1e12b

Please sign in to comment.