From c668136d569e4f85769861f8f6467665fa0f99f9 Mon Sep 17 00:00:00 2001 From: Sergey Antropoff Date: Thu, 23 Jul 2026 09:02:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20bundled=20install=5Fserver.sh=20=D1=81=20=D0=BE=D1=84?= =?UTF-8?q?=D0=B8=D1=86=D0=B8=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?get.hy2.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Синхронизация локальной копии после проверки SHA256. Co-authored-by: Cursor --- roles/hysteria2/files/install_server.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/hysteria2/files/install_server.sh b/roles/hysteria2/files/install_server.sh index 93c06d9..48da6c8 100755 --- a/roles/hysteria2/files/install_server.sh +++ b/roles/hysteria2/files/install_server.sh @@ -38,7 +38,7 @@ HY2_API_BASE_URL="https://api.hy2.io/v1" # curl command line flags. # To using a proxy, please specify ALL_PROXY in the environ variable, such like: # export ALL_PROXY=socks5h://192.0.2.1:1080 -CURL_FLAGS=(-L -f -q --retry 5 --retry-delay 10 --retry-max-time 60) +CURL_FLAGS=(-q -L -f --retry 5 --retry-delay 10 --retry-max-time 60) ### @@ -1027,10 +1027,10 @@ perform_install_hysteria_home_legacy() { } perform_install() { - local _is_frash_install + local _is_fresh_install local _is_upgrade_from_hysteria1 if ! is_hysteria_installed; then - _is_frash_install=1 + _is_fresh_install=1 elif is_hysteria1_version "$(get_installed_version)"; then _is_upgrade_from_hysteria1=1 fi @@ -1067,7 +1067,7 @@ perform_install() { echo echo "$(tgreen)Installed version is up-to-date, there is nothing to do.$(treset)" echo - elif [[ -n "$_is_frash_install" ]]; then + elif [[ -n "$_is_fresh_install" ]]; then echo echo -e "$(tbold)Congratulation! Hysteria 2 has been successfully installed on your server.$(treset)" echo