忽略https的证书校验

This commit is contained in:
spiritlhl 2023-08-03 08:40:44 +00:00
parent d83f7d20c4
commit 38adc75c50
3 changed files with 6 additions and 6 deletions

View file

@ -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/ 支持的系统镜像 "

View file

@ -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/ 支持的系统镜像 "

View file

@ -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/ 支持的系统镜像 "