mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
#921 adding command: lndmanage
This commit is contained in:
parent
c059318f25
commit
e1dbb121d3
2 changed files with 17 additions and 3 deletions
|
@ -28,4 +28,19 @@ function menu() {
|
|||
function repair() {
|
||||
cd /home/admin
|
||||
./98repairMenu.sh
|
||||
}
|
||||
}
|
||||
|
||||
# command: lndmanage
|
||||
function lndmanage() {
|
||||
if [ $(cat /mnt/hdd/raspiblitz.conf 2>/dev/null | grep -c "lndmanage=on") -eq 1 ]; then
|
||||
cd lndmanage
|
||||
source venv/bin/activate
|
||||
echo "starting .. to exit enter ---> deactivate"
|
||||
lndmanage
|
||||
else
|
||||
echo "lndmanage not install - to install run:"
|
||||
echo "sudo /home/admin/config.scripts/bonus.lndmanage.sh on"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -30,8 +30,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
sudo sed -i "s/^lndmanage=.*/lndmanage=on/g" /mnt/hdd/raspiblitz.conf
|
||||
|
||||
echo "usage: https://github.com/bitromortac/lndmanage/blob/master/README.md"
|
||||
echo "start with the line:"
|
||||
echo "'cd lndmanage & source venv/bin/activate & lndmanage'"
|
||||
echo "to start type on command line: lndmanage"
|
||||
echo "to exit type 'deactivate' and press ENTER"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue