Update install.sh

This commit is contained in:
Return
2024-05-22 20:19:52 +03:30
committed by GitHub
parent 43195d952e
commit 5716300f15

View File

@ -36,7 +36,7 @@ sha256=$(python3 generate.py)
# Step 6: Download the config.yaml file # Step 6: Download the config.yaml file
echo "Downloading config.yaml..." echo "Downloading config.yaml..."
wget https://raw.githubusercontent.com/H-Return/Hysteria2/main/config.yaml -O /etc/hysteria/config.yaml >/dev/null 2>&1 wget https://raw.githubusercontent.com/H-Return/Hysteria2/main/config.yaml -O /etc/hysteria/config.yaml >/dev/null 2>&1
echo -e "\n\n" echo -e "\n"
# Ask for the port number # Ask for the port number
read -p "Enter the port number you want to use: " port read -p "Enter the port number you want to use: " port
@ -84,11 +84,11 @@ if systemctl is-active --quiet hysteria-server.service; then
rows=$(tput lines) rows=$(tput lines)
qr=$(echo -n "$URI" | qrencode -t UTF8 -s 3 -m 2) qr=$(echo -n "$URI" | qrencode -t UTF8 -s 3 -m 2)
echo -e "\n\n\n" echo -e "\n\n"
echo "$qr" | while IFS= read -r line; do echo "$qr" | while IFS= read -r line; do
printf "%*s\n" $(( (${#line} + cols) / 2)) "$line" printf "%*s\n" $(( (${#line} + cols) / 2)) "$line"
done done
echo -e "\n\n\n" echo -e "\n\n"
# Output the URI scheme # Output the URI scheme
echo $URI echo $URI