#921 adding command: lndmanage

This commit is contained in:
rootzoll 2019-12-19 00:23:54 +01:00
parent c059318f25
commit e1dbb121d3
2 changed files with 17 additions and 3 deletions

View file

@ -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
}

View file

@ -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