Update install_iso.sh

This commit is contained in:
spiritLHLS 2023-02-15 15:24:45 +08:00 committed by GitHub
parent baaa70e9c8
commit cc2bdb82a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
echo "请选择要下载到的模板目录:"
echo "1. Proxmox VE 的模板目录(/var/lib/vz/template/iso/"
echo "2. LXC 的模板目录(/var/lib/lxc/template/iso/"
echo "3. 全都要"
read -p "请输入选项编号1或2: " choice
# 下载Ubuntu和Debian的最新系统镜像
@ -22,6 +23,12 @@ case "$choice" in
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/lxc/template/iso/
echo "已将镜像文件移动到 LXC 的模板目录"
;;
3)
cp /root/focal-server-cloudimg-amd64.img /var/lib/vz/template/iso/
cp /root/debian-11.6.0-amd64-netinst.iso /var/lib/vz/template/iso/
mv /root/focal-server-cloudimg-amd64.img /var/lib/lxc/template/iso/
mv /root/debian-11.6.0-amd64-netinst.iso /var/lib/lxc/template/iso/
;;
*)
echo "无效的选项,程序退出"
;;