diff --git a/install.sh b/install.sh index e4cd4c0..a9f222a 100644 --- a/install.sh +++ b/install.sh @@ -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..." sleep 3 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 -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 if ! grep -q "alias hys2='/etc/hysteria/menu.sh'" ~/.bashrc; then