更新Images地址

This commit is contained in:
spiritlhl 2023-08-01 07:46:12 +00:00
parent 9560c5167f
commit a241690848
3 changed files with 9 additions and 9 deletions

View file

@ -99,15 +99,15 @@ if [ "$system_arch" = "x86" ]; then
fi fi
done done
if [[ -z "$file_path" ]]; then if [[ -z "$file_path" ]]; then
_red "Unable to install corresponding system, please check https://github.com/spiritLHLS/Images/ for supported system images " _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
_red "无法安装对应系统,请查看 https://github.com/spiritLHLS/Images/ 支持的系统镜像 " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
exit 1 exit 1
fi fi
if [ ! -f "$file_path" ]; then if [ ! -f "$file_path" ]; then
# v1.0 基础安装包预安装 # v1.0 基础安装包预安装
# v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程 # v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程
check_cdn_file check_cdn_file
url="${cdn_success_url}https://github.com/spiritLHLS/Images/releases/download/v1.1/${system}.qcow2" url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/v1.1/${system}.qcow2"
curl -L -o "$file_path" "$url" curl -L -o "$file_path" "$url"
fi fi
elif [ "$system_arch" = "arch" ]; then elif [ "$system_arch" = "arch" ]; then

View file

@ -96,15 +96,15 @@ if [ "$system_arch" = "x86" ]; then
fi fi
done done
if [[ -z "$file_path" ]]; then if [[ -z "$file_path" ]]; then
_red "Unable to install corresponding system, please check https://github.com/spiritLHLS/Images/ for supported system images " _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
_red "无法安装对应系统,请查看 https://github.com/spiritLHLS/Images/ 支持的系统镜像 " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
exit 1 exit 1
fi fi
if [ ! -f "$file_path" ]; then if [ ! -f "$file_path" ]; then
# v1.0 基础安装包预安装 # v1.0 基础安装包预安装
# v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程 # v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程
check_cdn_file check_cdn_file
url="${cdn_success_url}https://github.com/spiritLHLS/Images/releases/download/v1.1/${system}.qcow2" url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/v1.1/${system}.qcow2"
curl -L -o "$file_path" "$url" curl -L -o "$file_path" "$url"
fi fi
elif [ "$system_arch" = "arch" ]; then elif [ "$system_arch" = "arch" ]; then

View file

@ -124,15 +124,15 @@ if [ "$system_arch" = "x86" ]; then
fi fi
done done
if [[ -z "$file_path" ]]; then if [[ -z "$file_path" ]]; then
_red "Unable to install corresponding system, please check https://github.com/spiritLHLS/Images/ for supported system images " _red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
_red "无法安装对应系统,请查看 https://github.com/spiritLHLS/Images/ 支持的系统镜像 " _red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
exit 1 exit 1
fi fi
if [ ! -f "$file_path" ]; then if [ ! -f "$file_path" ]; then
# v1.0 基础安装包预安装 # v1.0 基础安装包预安装
# v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程 # v1.1 增加agent安装包预安装方便在宿主机上看到虚拟机的进程
check_cdn_file check_cdn_file
url="${cdn_success_url}https://github.com/spiritLHLS/Images/releases/download/v1.1/${system}.qcow2" url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/v1.1/${system}.qcow2"
curl -L -o "$file_path" "$url" curl -L -o "$file_path" "$url"
fi fi
elif [ "$system_arch" = "arch" ]; then elif [ "$system_arch" = "arch" ]; then