termux.sh 534 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. # Script for running zeronet-conservancy in Termux on Android
  3. REPO_DIR="zeronet-conservancy"
  4. VENV_SCRIPT="start-venv.sh"
  5. if [[ -d "$REPO_DIR" ]]; then
  6. (cd "$REPO_DIR" && git pull --ff-only)
  7. else
  8. git clone https://github.com/zeronet-conservancy/zeronet-conservancy "$REPO_DIR"
  9. fi
  10. pkg update -y
  11. pkg install -y python automake git binutils tor
  12. echo "Starting tor..."
  13. tor --ControlPort 9051 --CookieAuthentication 1 >/dev/null &
  14. echo "Starting zeronet-conservancy..."
  15. (cd "$REPO_DIR" && ./"$VENV_SCRIPT")