From 38adc75c507ab0b3fbad81f2d6d7d1dbd2cbba3f Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:40:44 +0000 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5https=E7=9A=84=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/buildvm.sh | 4 ++-- scripts/buildvm_extraip.sh | 4 ++-- scripts/buildvm_manual_ip.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/buildvm.sh b/scripts/buildvm.sh index 7a5bd74..e3e82f6 100644 --- a/scripts/buildvm.sh +++ b/scripts/buildvm.sh @@ -140,11 +140,11 @@ if [ "$system_arch" = "x86" ]; then done if [[ "centos8-stream" == "$system" ]]; then url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else if [[ -n "$ver" ]]; then url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 " diff --git a/scripts/buildvm_extraip.sh b/scripts/buildvm_extraip.sh index 9a48fea..de3f340 100644 --- a/scripts/buildvm_extraip.sh +++ b/scripts/buildvm_extraip.sh @@ -137,11 +137,11 @@ if [ "$system_arch" = "x86" ]; then done if [[ "centos8-stream" == "$system" ]]; then url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else if [[ -n "$ver" ]]; then url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 " diff --git a/scripts/buildvm_manual_ip.sh b/scripts/buildvm_manual_ip.sh index 8b504dc..01a3f30 100644 --- a/scripts/buildvm_manual_ip.sh +++ b/scripts/buildvm_manual_ip.sh @@ -165,11 +165,11 @@ if [ "$system_arch" = "x86" ]; then done if [[ "centos8-stream" == "$system" ]]; then url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else if [[ -n "$ver" ]]; then url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2" - curl -L -o "$file_path" "$url" + curl -Lk -o "$file_path" "$url" else _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "