From 35eaa2a4d4829faa1d0f304ba14f33b4f82cd57c Mon Sep 17 00:00:00 2001 From: unmanbearpig Date: Sat, 4 Jun 2022 19:17:37 +0400 Subject: [PATCH 1/2] Add script for running zeronet-conservancy in Termux on Android Instructions: 1. Download the script in termux 2. Run it --- termux.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 termux.sh diff --git a/termux.sh b/termux.sh new file mode 100644 index 00000000..752eb3ac --- /dev/null +++ b/termux.sh @@ -0,0 +1,9 @@ + +# Script for running zeronet-conservancy in Termux on Android + +git clone https://github.com/zeronet-conservancy/zeronet-conservancy +cd zeronet-conservancy +pkg update +pkg install python automake git binutils tor +tor --ControlPort 9051 --CookieAuthentication 1 >/dev/null & +./start-venv.sh From ba77c99688d7a6dc61946a77b9d8dd1a0d48cd00 Mon Sep 17 00:00:00 2001 From: unmanbearpig Date: Sat, 4 Jun 2022 19:26:20 +0400 Subject: [PATCH 2/2] termux.sh: Pull zeronet if already cloned --- termux.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/termux.sh b/termux.sh index 752eb3ac..1eb365b1 100644 --- a/termux.sh +++ b/termux.sh @@ -1,9 +1,20 @@ # Script for running zeronet-conservancy in Termux on Android -git clone https://github.com/zeronet-conservancy/zeronet-conservancy -cd zeronet-conservancy -pkg update -pkg install python automake git binutils tor +if [[ -d zeronet-conservancy ]]; then + cd zeronet-conservancy + git pull --ff-only +else + git clone https://github.com/zeronet-conservancy/zeronet-conservancy + cd zeronet-conservancy +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..." ./start-venv.sh +cd ..