add checks for deps
This commit is contained in:
parent
aea43628ed
commit
f2f806c518
1 changed files with 15 additions and 0 deletions
|
|
@ -65,6 +65,21 @@ connect_clightning_node() {
|
||||||
}
|
}
|
||||||
|
|
||||||
lnbits-regtest-start(){
|
lnbits-regtest-start(){
|
||||||
|
if ! command -v jq &> /dev/null
|
||||||
|
then
|
||||||
|
echo "jq is not installed"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
if ! command -v docker &> /dev/null
|
||||||
|
then
|
||||||
|
echo "docker is not installed"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
if ! command -v docker version &> /dev/null
|
||||||
|
then
|
||||||
|
echo "dockerd is not running"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
lnbits-regtest-stop
|
lnbits-regtest-stop
|
||||||
docker compose up -d --remove-orphans
|
docker compose up -d --remove-orphans
|
||||||
lnbits-regtest-init
|
lnbits-regtest-init
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue