Add get_user.sh

This commit is contained in:
Sarina
2024-07-22 20:14:05 +03:30
parent a467160bbe
commit 6866b0030f
2 changed files with 36 additions and 3 deletions

View File

@ -13,15 +13,16 @@ if ! command -v jq &> /dev/null || ! command -v git &> /dev/null || ! command -v
apt update && apt upgrade -y && apt install jq qrencode curl pwgen uuid-runtime python3 python3-pip git -y
fi
# TODO: change the url later
git clone https://github.com/Iam54r1n4/Hysteria2 /etc/hysteria
# Add alias 'hys2' for Hysteria2
if ! grep -q "alias hys2='/etc/hysteria/menu.sh'" ~/.bashrc; then
echo "alias hys2='/etc/hysteria/menu.sh'" >> ~/.bashrc
source ~/.bashrc
fi
# TODO: change the url later
git clone https://github.com/Iam54r1n4/Hysteria2 /etc/hysteria
cd /etc/hysteria
chmod +x menu.sh
./menu.sh