mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-16 03:57:07 +08:00
Update buildvm.sh
This commit is contained in:
parent
4922cb5e38
commit
77e885c2a7
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ rm -rf "vm$name"
|
|||
if [ ! -d "qcow" ]; then
|
||||
mkdir qcow
|
||||
fi
|
||||
systems=("centos7" "debian10" "debian11" "debian9" "ubuntu18" "ubuntu20" "ubuntu22" "centos9-stream" "centos8-stream")
|
||||
systems=("centos7" "debian10" "debian11" "debian9" "ubuntu18" "ubuntu20" "ubuntu22" "centos9-stream" "centos8-stream" "archlinux" "almalinux8" "almalinux9")
|
||||
for sys in ${systems[@]}; do
|
||||
if [[ "$system" == "$sys" ]]; then
|
||||
file_path="/root/qcow/${system}.qcow2"
|
||||
|
@ -35,7 +35,7 @@ for sys in ${systems[@]}; do
|
|||
fi
|
||||
done
|
||||
if [[ -z "$file_path" ]]; then
|
||||
echo "无法安装对应系统,仅支持 debian9 debian10 debian11 ubuntu18 ubuntu20 ubuntu22 centos9-stream centos8-stream centos7"
|
||||
echo "无法安装对应系统,仅支持 debian9 debian10 debian11 ubuntu18 ubuntu20 ubuntu22 centos9-stream centos8-stream centos7 archlinux almalinux8 almalinux9"
|
||||
exit 1
|
||||
fi
|
||||
url="https://github.com/spiritLHLS/Images/releases/download/v1.0/${system}.qcow2"
|
||||
|
|
Loading…
Reference in a new issue