#1040 add some delay after fail info

This commit is contained in:
rootzoll
2020-02-19 17:03:03 +01:00
parent 3955d249f2
commit 606a32aaf0

View File

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