mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
#1040 add some delay after fail info
This commit is contained in:
@@ -28,7 +28,8 @@ fi
|
|||||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
|
||||||
if [ "${lndmanage}" == "on" ]; then
|
if [ "${lndmanage}" == "on" ]; then
|
||||||
echo "LNDMANAGE already installed"
|
echo "# FAIL - LNDMANAGE already installed"
|
||||||
|
sleep 3
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -40,7 +41,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# activate virtual environment
|
# activate virtual environment
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source /home/admin/lndmanage/venv/bin/activate
|
source /home/admin/lndmanage/venv/bin/activate
|
||||||
|
|
||||||
# get dependencies
|
# get dependencies
|
||||||
sudo apt install -y python3-dev libatlas-base-dev
|
sudo apt install -y python3-dev libatlas-base-dev
|
||||||
python3 -m pip install wheel
|
python3 -m pip install wheel
|
||||||
@@ -49,8 +50,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# check if install was successfull
|
# check if install was successfull
|
||||||
if [ $(python3 -m pip list | grep -c "lndmanage") -eq 0 ]; then
|
if [ $(python3 -m pip list | grep -c "lndmanage") -eq 0 ]; then
|
||||||
echo
|
echo
|
||||||
echo "!! FAIL --> Was not able to install LNDMANAGE"
|
echo "#!! FAIL --> Was not able to install LNDMANAGE"
|
||||||
echo "!! Maybe because of internet network issues - try again later."
|
echo "#!! Maybe because of internet network issues - try again later."
|
||||||
sleep 9
|
sleep 9
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -58,10 +59,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# setting value in raspi blitz config
|
# setting value in raspi blitz config
|
||||||
sudo sed -i "s/^lndmanage=.*/lndmanage=on/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^lndmanage=.*/lndmanage=on/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
echo "usage: https://github.com/bitromortac/lndmanage/blob/master/README.md"
|
echo "# usage: https://github.com/bitromortac/lndmanage/blob/master/README.md"
|
||||||
echo "To start type: 'manage' in the command line."
|
echo "# To start type: 'manage' in the command line."
|
||||||
echo "Needs at least one channel to start without error."
|
echo "# Needs at least one channel to start without error."
|
||||||
echo "To exit the venv - type 'deactivate' and press ENTER"
|
echo "# To exit the venv - type 'deactivate' and press ENTER"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -74,7 +75,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
|||||||
|
|
||||||
echo "*** REMOVING LNDMANAGE ***"
|
echo "*** REMOVING LNDMANAGE ***"
|
||||||
sudo rm -rf /home/admin/lndmanage
|
sudo rm -rf /home/admin/lndmanage
|
||||||
echo "OK, lndmanage is removed."
|
echo "# OK, lndmanage is removed."
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user