From 606a32aaf0d3d8bf3b9f3b67761d49252242bf2b Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 19 Feb 2020 17:03:03 +0100 Subject: [PATCH] #1040 add some delay after fail info --- home.admin/config.scripts/bonus.lndmanage.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/home.admin/config.scripts/bonus.lndmanage.sh b/home.admin/config.scripts/bonus.lndmanage.sh index 14579f7d0..2e250262e 100644 --- a/home.admin/config.scripts/bonus.lndmanage.sh +++ b/home.admin/config.scripts/bonus.lndmanage.sh @@ -28,7 +28,8 @@ fi if [ "$1" = "1" ] || [ "$1" = "on" ]; then if [ "${lndmanage}" == "on" ]; then - echo "LNDMANAGE already installed" + echo "# FAIL - LNDMANAGE already installed" + sleep 3 exit 1 fi @@ -40,7 +41,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # activate virtual environment python3 -m venv venv source /home/admin/lndmanage/venv/bin/activate - + # get dependencies sudo apt install -y python3-dev libatlas-base-dev python3 -m pip install wheel @@ -49,8 +50,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # check if install was successfull if [ $(python3 -m pip list | grep -c "lndmanage") -eq 0 ]; then echo - echo "!! FAIL --> Was not able to install LNDMANAGE" - echo "!! Maybe because of internet network issues - try again later." + echo "#!! FAIL --> Was not able to install LNDMANAGE" + echo "#!! Maybe because of internet network issues - try again later." sleep 9 exit 1 fi @@ -58,10 +59,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # setting value in raspi blitz config sudo sed -i "s/^lndmanage=.*/lndmanage=on/g" /mnt/hdd/raspiblitz.conf - echo "usage: https://github.com/bitromortac/lndmanage/blob/master/README.md" - echo "To start type: 'manage' in the command line." - echo "Needs at least one channel to start without error." - echo "To exit the venv - type 'deactivate' and press ENTER" + echo "# usage: https://github.com/bitromortac/lndmanage/blob/master/README.md" + echo "# To start type: 'manage' in the command line." + echo "# Needs at least one channel to start without error." + echo "# To exit the venv - type 'deactivate' and press ENTER" exit 0 fi @@ -74,7 +75,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then echo "*** REMOVING LNDMANAGE ***" sudo rm -rf /home/admin/lndmanage - echo "OK, lndmanage is removed." + echo "# OK, lndmanage is removed." exit 0 fi