mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
parent
af95b6a3bc
commit
1feeee56f1
1 changed files with 13 additions and 8 deletions
|
@ -16,17 +16,22 @@ fi
|
|||
|
||||
# install
|
||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
||||
if [ -d "/home/admin/lndmanage" ]; then
|
||||
echo "LNDMANAGE already installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "*** INSTALL LNDMANAGE ***"
|
||||
mkdir lndmanage
|
||||
cd lndmanage
|
||||
mkdir /home/admin/lndmanage
|
||||
cd /home/admin/lndmanage
|
||||
# activate virtual environment
|
||||
sudo apt install -y python3-venv
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
python -m venv venv
|
||||
source /home/admin/lndmanage/venv/bin/activate
|
||||
# get dependencies
|
||||
sudo apt install -y python3-dev libatlas-base-dev
|
||||
pip3 install wheel
|
||||
pip3 install lndmanage==0.8.0.1
|
||||
python -m pip install wheel
|
||||
python -m pip install lndmanage==0.8.0.1
|
||||
|
||||
# setting value in raspi blitz config
|
||||
sudo sed -i "s/^lndmanage=.*/lndmanage=on/g" /mnt/hdd/raspiblitz.conf
|
||||
|
@ -52,4 +57,4 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
|||
fi
|
||||
|
||||
echo "FAIL - Unknown Parameter $1"
|
||||
exit 1
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue