mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 01:58:53 +08:00
2023.08.29
This commit is contained in:
parent
d32090d43b
commit
140a57ca16
3 changed files with 17 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
# 更新日志
|
||||
|
||||
2023.08.27
|
||||
|
||||
- 将删除物理网关的操作移动到创建vmbr0之前,而不是原来的创建vmbr1之前
|
||||
|
||||
2023.08.26
|
||||
|
||||
- 修复开设NAT网关时,vmbr0如果不存在就去补全时的漏洞,尝试支持第一第二步安装PVE不使用本仓库脚本的PVE创建NAT网关
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
## 更新
|
||||
|
||||
2023.08.27
|
||||
2023.08.29
|
||||
|
||||
- 将删除物理网关的操作移动到创建vmbr0之前,而不是原来的创建vmbr1之前
|
||||
- 判断IPV6是否未dhcp类型,如果是则检测是否已分配IPV6地址,如果未分配则删除对应配置避免冲突
|
||||
|
||||
[更新日志](CHANGELOG.md)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# from
|
||||
# https://github.com/spiritLHLS/pve
|
||||
# 2023.08.26
|
||||
# 2023.08.29
|
||||
|
||||
########## 预设部分输出和部分中间变量
|
||||
|
||||
|
@ -1155,6 +1155,16 @@ if [[ $dmidecode_output == *"Hetzner_vServer"* ]] || [[ $dmidecode_output == *"M
|
|||
fi
|
||||
fi
|
||||
|
||||
# 检测IPV6是不是启用了dhcp但未分配IPV6地址
|
||||
if [ -z "$ipv6_address" ] || [ -z "$ipv6_prefixlen" ] || [ -z "$ipv6_gateway" ]; then
|
||||
if [ -f /etc/network/if-pre-up.d/cloud_inet6 ]; then
|
||||
rm -rf /etc/network/if-pre-up.d/cloud_inet6
|
||||
fi
|
||||
chattr -i /etc/network/interfaces
|
||||
sed -i '/iface ens4 inet6 \(manual\|dhcp\)/d' /etc/network/interfaces
|
||||
chattr +i /etc/network/interfaces
|
||||
fi
|
||||
|
||||
# 部分机器中途service丢失了,尝试修复
|
||||
install_package service
|
||||
|
||||
|
|
Loading…
Reference in a new issue