virtual environment

This commit is contained in:
Whispering Wind
2024-08-14 09:39:42 +03:30
committed by GitHub
parent e79fd27405
commit 10499f9345

View File

@ -10,10 +10,15 @@ if ! command -v jq &> /dev/null || ! command -v git &> /dev/null || ! command -v
echo "${yellow}Necessary packages are not installed. Please wait while they are being installed..." echo "${yellow}Necessary packages are not installed. Please wait while they are being installed..."
sleep 3 sleep 3
echo echo
apt update && apt upgrade -y && apt install jq qrencode curl pwgen uuid-runtime python3 python3-pip git -y apt update && apt upgrade -y && apt install jq qrencode curl pwgen uuid-runtime python3 python3-pip python3-venv git -y
fi fi
git clone https://github.com/ReturnFI/Hysteria2 /etc/hysteria git clone -b https://github.com/ReturnFI/Hysteria2 /etc/hysteria
# Create and activate Python virtual environment
cd /etc/hysteria
python3 -m venv venv
source /etc/hysteria/venv/bin/activate
# Add alias 'hys2' for Hysteria2 # Add alias 'hys2' for Hysteria2
if ! grep -q "alias hys2='/etc/hysteria/menu.sh'" ~/.bashrc; then if ! grep -q "alias hys2='/etc/hysteria/menu.sh'" ~/.bashrc; then