mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
2023.08.03
This commit is contained in:
parent
e4a06dfb99
commit
d83f7d20c4
4 changed files with 37 additions and 18 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
- 网络配置文件备份修改顺序,避免重复备份
|
||||
- 增加已修改过的文件的备份
|
||||
- KVM虚拟机增加centos8-stream镜像源
|
||||
|
||||
[更新日志](CHANGELOG.md)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.08.02
|
||||
# 2023.08.03
|
||||
|
||||
|
||||
# ./buildvm.sh VMID 用户名 密码 CPU核数 内存 硬盘 SSH端口 80端口 443端口 外网端口起 外网端口止 系统 存储盘
|
||||
|
@ -108,6 +108,7 @@ if [ "$system_arch" = "x86" ]; then
|
|||
"alpinelinux_edge"
|
||||
"alpinelinux_stable"
|
||||
"rockylinux8"
|
||||
"centos8-stream"
|
||||
)
|
||||
for sys in ${systems[@]}; do
|
||||
if [[ "$system" == "$sys" ]]; then
|
||||
|
@ -137,13 +138,18 @@ if [ "$system_arch" = "x86" ]; then
|
|||
break
|
||||
fi
|
||||
done
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
if [[ "centos8-stream" == "$system" ]]; then
|
||||
url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
elif [ "$system_arch" = "arch" ]; then
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.08.02
|
||||
# 2023.08.03
|
||||
# 自动选择要绑定的IPV4地址
|
||||
|
||||
|
||||
|
@ -105,6 +105,7 @@ if [ "$system_arch" = "x86" ]; then
|
|||
"alpinelinux_edge"
|
||||
"alpinelinux_stable"
|
||||
"rockylinux8"
|
||||
"centos8-stream"
|
||||
)
|
||||
for sys in ${systems[@]}; do
|
||||
if [[ "$system" == "$sys" ]]; then
|
||||
|
@ -134,13 +135,18 @@ if [ "$system_arch" = "x86" ]; then
|
|||
break
|
||||
fi
|
||||
done
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
if [[ "centos8-stream" == "$system" ]]; then
|
||||
url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
elif [ "$system_arch" = "arch" ]; then
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.08.02
|
||||
# 2023.08.03
|
||||
# 手动指定要绑定的IPV4地址
|
||||
|
||||
|
||||
|
@ -133,6 +133,7 @@ if [ "$system_arch" = "x86" ]; then
|
|||
"alpinelinux_edge"
|
||||
"alpinelinux_stable"
|
||||
"rockylinux8"
|
||||
"centos8-stream"
|
||||
)
|
||||
for sys in ${systems[@]}; do
|
||||
if [[ "$system" == "$sys" ]]; then
|
||||
|
@ -162,13 +163,18 @@ if [ "$system_arch" = "x86" ]; then
|
|||
break
|
||||
fi
|
||||
done
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
if [[ "centos8-stream" == "$system" ]]; then
|
||||
url="https://git.ilolicon.dev/Ella-Alinda/images/raw/branch/main/centos8-stream.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
if [[ -n "$ver" ]]; then
|
||||
url="${cdn_success_url}https://github.com/oneclickvirt/kvm_images/releases/download/${ver}/${system}.qcow2"
|
||||
curl -L -o "$file_path" "$url"
|
||||
else
|
||||
_red "Unable to install corresponding system, please check https://github.com/oneclickvirt/kvm_images/ for supported system images "
|
||||
_red "无法安装对应系统,请查看 https://github.com/oneclickvirt/kvm_images/ 支持的系统镜像 "
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
elif [ "$system_arch" = "arch" ]; then
|
||||
|
|
Loading…
Reference in a new issue