From e331659851e2b4a8101f8679d9aa70b3f656e6fc Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 14 Feb 2024 10:36:27 +0100 Subject: [PATCH] scripts: enable socks5 proxy --- scripts/initenv.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/initenv.sh b/scripts/initenv.sh index a9169e72..4d5071fe 100755 --- a/scripts/initenv.sh +++ b/scripts/initenv.sh @@ -2,5 +2,10 @@ set -e python3 -m venv --upgrade-deps venv -venv/bin/pip install -e chatmaild -venv/bin/pip install -e cmdeploy +if [ -z ${SOCKS5_PROXY+x} ]; then + venv/bin/pip install -e chatmaild + venv/bin/pip install -e cmdeploy +else + venv/bin/pip install --proxy socks5://$SOCKS5_PROXY -e chatmaild + venv/bin/pip install --proxy socks5://$SOCKS5_PROXY -e cmdeploy +fi