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