mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 10:38:22 +08:00
Update buildvm.sh
This commit is contained in:
parent
1597a7779d
commit
464794b042
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# from
|
# from
|
||||||
# https://github.com/spiritLHLS/pve
|
# https://github.com/spiritLHLS/pve
|
||||||
# 2023.05.03
|
# 2023.05.06
|
||||||
|
|
||||||
# ./buildvm.sh VMID 用户名 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统
|
# ./buildvm.sh VMID 用户名 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统
|
||||||
# ./buildvm.sh 102 test1 1234567 1 512 5 40001 40002 40003 50000 50025 debian11
|
# ./buildvm.sh 102 test1 1234567 1 512 5 40001 40002 40003 50000 50025 debian11
|
||||||
|
@ -65,8 +65,8 @@ check_cdn_file
|
||||||
if [ ! -d "qcow" ]; then
|
if [ ! -d "qcow" ]; then
|
||||||
mkdir qcow
|
mkdir qcow
|
||||||
fi
|
fi
|
||||||
# "centos9-stream" "centos8-stream" "centos7" "almalinux8" "almalinux9" "alpinelinux_v3_15" "alpinelinux_v3_17"
|
# "centos7" "alpinelinux_v3_15" "alpinelinux_v3_17"
|
||||||
systems=("debian10" "debian11" "debian9" "ubuntu18" "ubuntu20" "ubuntu22" "archlinux")
|
systems=("debian10" "debian11" "debian9" "ubuntu18" "ubuntu20" "ubuntu22" "archlinux" "centos9-stream" "centos8-stream" "almalinux8" "almalinux9")
|
||||||
for sys in ${systems[@]}; do
|
for sys in ${systems[@]}; do
|
||||||
if [[ "$system" == "$sys" ]]; then
|
if [[ "$system" == "$sys" ]]; then
|
||||||
file_path="/root/qcow/${system}.qcow2"
|
file_path="/root/qcow/${system}.qcow2"
|
||||||
|
|
Loading…
Reference in a new issue