mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
@@ -16,17 +16,22 @@ fi
|
|||||||
|
|
||||||
# install
|
# install
|
||||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
|
||||||
|
if [ -d "/home/admin/lndmanage" ]; then
|
||||||
|
echo "LNDMANAGE already installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "*** INSTALL LNDMANAGE ***"
|
echo "*** INSTALL LNDMANAGE ***"
|
||||||
mkdir lndmanage
|
mkdir /home/admin/lndmanage
|
||||||
cd lndmanage
|
cd /home/admin/lndmanage
|
||||||
# activate virtual environment
|
# activate virtual environment
|
||||||
sudo apt install -y python3-venv
|
python -m venv venv
|
||||||
python3 -m venv venv
|
source /home/admin/lndmanage/venv/bin/activate
|
||||||
source 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
|
||||||
pip3 install wheel
|
python -m pip install wheel
|
||||||
pip3 install lndmanage==0.8.0.1
|
python -m pip install lndmanage==0.8.0.1
|
||||||
|
|
||||||
# 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
|
||||||
|
Reference in New Issue
Block a user