From d229b7a76538eedfef42aba4ee021a6843b7f9e9 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:08:25 +0100 Subject: [PATCH] fix: bash failed using after install (#2685) --- docs/guide/installation.md | 2 +- lnbits.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 5bed99ad..7675f8b4 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 8e2c990f..38518fba 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