Skip to content

Commit

Permalink
add zeronet-conservancy-termux.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Dec 7, 2024
1 parent d114fe6 commit 1da00a0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions shell/bash/android/zeronet-conservancy-termux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090
# Script for running zeronet-conservancy in Termux on Android
# <https://github.com/zeronet-conservancy/zeronet-conservancy>

REPO_DIR="zeronet-conservancy"
VENVPATH="venv/bin/activate"

if [[ -d "$REPO_DIR" ]]; then
(cd "$REPO_DIR" && git pull --ff-only)
else
git clone https://github.com/zeronet-conservancy/zeronet-conservancy "$REPO_DIR"
fi

pkg update -y
pkg install -y python automake git binutils tor

echo "Starting tor..."
tor --ControlPort 9051 --CookieAuthentication 1 >/dev/null &

echo "Starting zeronet-conservancy..."
(
cd "$REPO_DIR" || exit 1

if [ ! -f "$VENVPATH" ]; then
python3 -m venv venv
fi

source "$VENVPATH"
python3 -m pip install -r requirements.txt
python3 zeronet.py --ui_ip "*" "$@"

)

0 comments on commit 1da00a0

Please sign in to comment.