-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d114fe6
commit 1da00a0
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "*" "$@" | ||
|
||
) |