mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 11:38:00 +08:00
Update install_iso.sh
This commit is contained in:
parent
baaa70e9c8
commit
cc2bdb82a3
1 changed files with 7 additions and 0 deletions
|
@ -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 "无效的选项,程序退出"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue