diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 5bed99ad5..7675f8b42 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -70,7 +70,7 @@ chmod +x lnbits.sh && Now visit `0.0.0.0:5000` to make a super-user account. -`./lnbits.sh` can be used to run, but for more control `cd lnbits` and use `poetry run lnbits` (see previous option). +`export PATH="/home/$USER/.local/bin:$PATH"` then `./lnbits.sh` can be used to run, but for more control `cd lnbits` and use `poetry run lnbits` (see previous option). ## Option 3: Nix diff --git a/lnbits.sh b/lnbits.sh index 8e2c990fc..38518fba4 100644 --- a/lnbits.sh +++ b/lnbits.sh @@ -42,6 +42,9 @@ elif [ ! -d lnbits/wallets ]; then cd lnbits || { echo "Failed to cd into lnbits ... FAIL"; exit 1; } fi +# Set path for running after install +export PATH="/home/$USER/.local/bin:$PATH" + # Install the dependencies using Poetry poetry env use python3.9 poetry install --only main