Update install_iso.sh

This commit is contained in:
spiritLHLS 2023-02-27 10:38:39 +08:00 committed by GitHub
parent 0f6aa00a1b
commit 12cda535b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,14 +33,14 @@ read -p "请输入选项编号1或2: " choice
case "$choice" in case "$choice" in
1) 1)
if [[ -n "${CN}" ]]; then if [[ -n "${CN}" ]]; then
wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/realServer-Template/releases/download/1.1/ubuntu20.qcow2 wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/focal/current/focal-server-cloudimg-amd64.img
wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/realServer-Template/releases/download/1.0/debian11.qcow2 wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
else else
wget -P /root/ https://github.com/spiritLHLS/realServer-Template/releases/download/1.1/ubuntu20.qcow2 wget -P /root/ https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
wget -P /root/ https://github.com/spiritLHLS/realServer-Template/releases/download/1.0/debian11.qcow2 wget -P /root/ https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
fi fi
mv /root/ubuntu20.qcow2 /var/lib/vz/template/iso/ mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
mv /root/debian11.qcow2 /var/lib/vz/template/iso/ mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
echo "已将镜像文件移动到 Proxmox VE 的模板目录" echo "已将镜像文件移动到 Proxmox VE 的模板目录"
;; ;;
2) 2)
@ -61,23 +61,23 @@ case "$choice" in
3) 3)
if [[ -n "${CN}" ]]; then if [[ -n "${CN}" ]]; then
wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/realServer-Template/releases/download/1.1/ubuntu20.qcow2 wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/focal/current/focal-server-cloudimg-amd64.img
wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/realServer-Template/releases/download/1.0/debian11.qcow2 wget -P /root/ https://ghproxy.com/https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/debian-11-standard_11.3-0_amd64.tar.gz wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/debian-11-standard_11.3-0_amd64.tar.gz
wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/ubuntu-20.10-standard_20.10-1_amd64.tar.gz wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/ubuntu-20.10-standard_20.10-1_amd64.tar.gz
# wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/debian-10-standard_10.7-1_amd64.tar.gz wget -P /root/ https://mirrors.tuna.tsinghua.edu.cn/proxmox/images/system/debian-10-standard_10.7-1_amd64.tar.gz
else else
wget -P /root/ https://github.com/spiritLHLS/realServer-Template/releases/download/1.1/ubuntu20.qcow2 wget -P /root/ https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
wget -P /root/ https://github.com/spiritLHLS/realServer-Template/releases/download/1.0/debian11.qcow2 wget -P /root/ https://github.com/spiritLHLS/pve/releases/download/debian-11.6.0-amd64-netinst.iso/debian-11.6.0-amd64-netinst.iso
wget -P /root/ http://download.proxmox.com/images/system/ubuntu-20.10-standard_20.10-1_amd64.tar.gz wget -P /root/ http://download.proxmox.com/images/system/ubuntu-20.10-standard_20.10-1_amd64.tar.gz
wget -P /root/ http://download.proxmox.com/images/system/debian-11-standard_11.3-0_amd64.tar.gz wget -P /root/ http://download.proxmox.com/images/system/debian-11-standard_11.3-0_amd64.tar.gz
# wget -P /root/ http://download.proxmox.com/images/system/debian-10-standard_10.7-1_amd64.tar.gz wget -P /root/ http://download.proxmox.com/images/system/debian-10-standard_10.7-1_amd64.tar.gz
fi fi
mv /root/ubuntu20.qcow2 /var/lib/vz/template/iso/ mv /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
mv /root/debian11.qcow2 /var/lib/vz/template/iso/ mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
mv /root/ubuntu-20.10-standard_20.10-1_amd64.tar.gz /var/lib/vz/template/cache/ mv /root/ubuntu-20.10-standard_20.10-1_amd64.tar.gz /var/lib/vz/template/cache/
mv /root/debian-11-standard_11.3-0_amd64.tar.gz /var/lib/vz/template/cache/ mv /root/debian-11-standard_11.3-0_amd64.tar.gz /var/lib/vz/template/cache/
# mv /root/debian-10-standard_10.7-1_amd64.tar.gz /var/lib/vz/template/cache/ mv /root/debian-10-standard_10.7-1_amd64.tar.gz /var/lib/vz/template/cache/
;; ;;
*) *)
echo "无效的选项,程序退出" echo "无效的选项,程序退出"