mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
add lndmanage to the main menu
This commit is contained in:
parent
92d1c63d97
commit
6614d216d3
3 changed files with 19 additions and 6 deletions
|
@ -39,6 +39,9 @@ fi
|
|||
if [ "${ElectRS}" == "on" ]; then
|
||||
OPTIONS+=(ELECTRS "Electrum Rust Server")
|
||||
fi
|
||||
if [ "${lndmanage}" == "on" ]; then
|
||||
OPTIONS+=(lndmanage "Electrum Rust Server")
|
||||
fi
|
||||
|
||||
# Basic Options
|
||||
OPTIONS+=(INFO "RaspiBlitz Status Screen")
|
||||
|
@ -130,6 +133,10 @@ case $CHOICE in
|
|||
/home/admin/config.scripts/bonus.electrs.sh menu
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
lndmanage)
|
||||
/home/admin/config.scripts/bonus.lndmanage.sh menu
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
lnchannels)
|
||||
lnchannels ${network}
|
||||
echo "Press ENTER to return to main menu."
|
||||
|
|
|
@ -560,11 +560,7 @@ if [ "${lndmanage}" != "${choice}" ]; then
|
|||
anychange=1
|
||||
sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh ${choice}
|
||||
if [ "${choice}" = "on" ]; then
|
||||
whiptail --title " Installed lndmanage " --msgbox "\
|
||||
Usage: https://github.com/bitromortac/lndmanage/blob/master/README.md
|
||||
Have at least one channel active to run it without error.
|
||||
To start type: 'manage' in the command line.
|
||||
" 9 75
|
||||
sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh menu
|
||||
fi
|
||||
else
|
||||
echo "lndmanage setting unchanged."
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
echo "config script to install or uninstall lndmanage"
|
||||
echo "bonus.lndmanage.sh [on|off]"
|
||||
echo "bonus.lndmanage.sh [on|off|menu]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -14,6 +14,16 @@ if ! grep -Eq "^lndmanage=" /mnt/hdd/raspiblitz.conf; then
|
|||
echo "lndmanage=off" >> /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
|
||||
# show info menu
|
||||
if [ "$1" = "menu" ]; then
|
||||
dialog --title " Info lndmanage " --msgbox "\n\
|
||||
Usage: https://github.com/bitromortac/lndmanage/blob/master/README.md
|
||||
Have at least one channel active to run it without error.\n
|
||||
To start type: 'manage' in the command line.
|
||||
" 9 75
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# install
|
||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue