diff --git a/README.md b/README.md index 27cb27a..280a3b1 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ cp example.env .env Edit .env to have your HSD api key. If you have HSD runnning on a separate computer also add the IP here +For a quick and easy installation on ubuntu/debian you can run the install.sh script +```bash +curl https://git.woodburn.au/nathanwoodburn/firewalletbrowser/src/branch/main/install.sh | bash +``` + ## Usage Make sure HSD is running then run the following commands: diff --git a/install.sh b/install.sh index b6bc037..bf85718 100755 --- a/install.sh +++ b/install.sh @@ -2,9 +2,15 @@ install_command="" +# Check if currently in the FireWalletBrowser directory +if [ -f "server.py" ]; then + echo "Please run this script from outside the FireWalletBrowser directory." + exit 1 +fi + +echo "Starting installation of FireWalletBrowser..." # Check if OS is using apt package manager (Debian/Ubuntu) - if command -v apt-get &> /dev/null; then install_command="sudo apt-get install -y" dependencies=(git curl wget python3 python3-pip python3-venv)