mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
add pip3 config set global.break-system-packages true for non-venv installs (#4700)
* charge-lnd: activate venv in systemd service * add pip3 config set global.break-system-packages true for non-venv installs
This commit is contained in:
parent
109cbf573b
commit
5099b037f3
5 changed files with 10 additions and 2 deletions
|
@ -74,7 +74,7 @@ Description=charge-lnd
|
|||
After=lnd.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/bitcoin/charge-lnd/bin/charge-lnd -c /mnt/hdd/app-data/charge-lnd/charge.config
|
||||
ExecStart=bash -c '. /home/bitcoin/charge-lnd/bin/activate; /home/bitcoin/charge-lnd/bin/charge-lnd -c /mnt/hdd/app-data/charge-lnd/charge.config'
|
||||
User=bitcoin
|
||||
Group=bitcoin
|
||||
Type=simple
|
||||
|
|
|
@ -589,6 +589,7 @@ if [ "$1" = "sync" ] || [ "$1" = "repo" ]; then
|
|||
echo "# check if poetry in installed, if not install it"
|
||||
if ! sudo -u lnbits which poetry; then
|
||||
echo "# install poetry"
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
sudo pip3 install poetry
|
||||
fi
|
||||
|
@ -650,6 +651,7 @@ if [ "$1" = "install" ]; then
|
|||
# check if poetry in installed, if not install it
|
||||
if ! sudo -u lnbits which poetry; then
|
||||
echo "# install poetry"
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
sudo pip3 install poetry
|
||||
fi
|
||||
|
|
|
@ -35,6 +35,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
cd /home/bitcoin || exit 1
|
||||
|
||||
# poetry
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
sudo pip3 install poetry
|
||||
|
||||
|
@ -80,6 +81,7 @@ if [ "$1" = "update" ]; then
|
|||
echo "# UPDATE SUEZ"
|
||||
cd /home/bitcoin || exit 1
|
||||
# dependency
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
sudo pip3 install poetry
|
||||
# download source code
|
||||
|
|
|
@ -40,9 +40,11 @@ function install() {
|
|||
if [ $($lightningcli_alias plugin list 2>/dev/null | grep -c "/${plugin}") -eq 0 ]; then
|
||||
echo "# Checking dependencies"
|
||||
# upgrade pip
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
|
||||
# pip dependencies
|
||||
sudo -u bitcoin pip3 config set global.break-system-packages true
|
||||
sudo -u bitcoin pip3 install pyln-client tqdm psutil
|
||||
|
||||
# poetry
|
||||
|
|
|
@ -46,10 +46,12 @@ function installDependencies() {
|
|||
# for clnrest (since v23.11)
|
||||
sudo apt-get install -y python3-json5 python3-flask python3-gunicorn
|
||||
# upgrade pip
|
||||
sudo pip3 config set global.break-system-packages true
|
||||
sudo pip3 install --upgrade pip
|
||||
# for clnrest
|
||||
pip3 install mako
|
||||
sudo pip3 install mako
|
||||
cd /home/bitcoin/lightning || exit 1
|
||||
sudo -u bitcoin pip3 config set global.break-system-packages true
|
||||
sudo -u bitcoin pip3 install --user -r plugins/clnrest/requirements.txt
|
||||
# poetry
|
||||
sudo pip3 install poetry
|
||||
|
|
Loading…
Add table
Reference in a new issue