Refactor termux.sh
This commit is contained in:
parent
ae3c4350b5
commit
b89cd79d6a
1 changed files with 8 additions and 8 deletions
16
termux.sh
16
termux.sh
|
@ -1,12 +1,13 @@
|
|||
|
||||
#!/usr/bin/env bash
|
||||
# Script for running zeronet-conservancy in Termux on Android
|
||||
|
||||
if [[ -d zeronet-conservancy ]]; then
|
||||
cd zeronet-conservancy
|
||||
git pull --ff-only
|
||||
REPO_DIR="zeronet-conservancy"
|
||||
VENV_SCRIPT="start-venv.sh"
|
||||
|
||||
if [[ -d "$REPO_DIR" ]]; then
|
||||
(cd "$REPO_DIR" && git pull --ff-only)
|
||||
else
|
||||
git clone https://github.com/zeronet-conservancy/zeronet-conservancy
|
||||
cd zeronet-conservancy
|
||||
git clone https://github.com/zeronet-conservancy/zeronet-conservancy "$REPO_DIR"
|
||||
fi
|
||||
|
||||
pkg update -y
|
||||
|
@ -16,5 +17,4 @@ echo "Starting tor..."
|
|||
tor --ControlPort 9051 --CookieAuthentication 1 >/dev/null &
|
||||
|
||||
echo "Starting zeronet-conservancy..."
|
||||
./start-venv.sh
|
||||
cd ..
|
||||
(cd "$REPO_DIR" && ./"$VENV_SCRIPT")
|
||||
|
|
Loading…
Reference in a new issue