mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 15:05:56 +08:00
update
This commit is contained in:
parent
d0434ef529
commit
bb6a7a10f9
|
@ -1,5 +1,11 @@
|
|||
# 更新日志
|
||||
|
||||
2023.06.21
|
||||
|
||||
- 增加手动指定IPV4地址的脚本
|
||||
- PVE安装修复部分系统原生网络设置有问题的情况
|
||||
- 修复NAT网关自动设置时部分机器的物理接口存在别名的情况,已自动识别替换别名
|
||||
|
||||
2023.06.14
|
||||
|
||||
- 修改ssh.sh文件以适配不同的系统启用SSH端口和服务
|
||||
|
|
|
@ -11,11 +11,9 @@
|
|||
|
||||
## 更新
|
||||
|
||||
2023.06.21
|
||||
2023.06.22
|
||||
|
||||
- 增加手动指定IPV4地址的脚本
|
||||
- PVE安装修复部分系统原生网络设置有问题的情况
|
||||
- 修复NAT网关自动设置时部分机器的物理接口存在别名的情况,已自动识别替换别名
|
||||
- PVE安装修复部分机器网络设置不立即重新加载的问题,增加网络设置备份
|
||||
|
||||
[更新日志](CHANGELOG.md)
|
||||
|
||||
|
|
|
@ -51,7 +51,9 @@ rm "$temp_file_apt_fix"
|
|||
|
||||
remove_duplicate_lines() {
|
||||
# 去除重复行并跳过空行
|
||||
if [ -f "$1" ];then
|
||||
awk '!NF || !x[$0]++' "$1" > "$1.tmp" && mv -f "$1.tmp" "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
install_package() {
|
||||
|
@ -344,6 +346,10 @@ if [[ -f "/etc/network/interfaces.d/50-cloud-init" && -f "/etc/network/interface
|
|||
chattr +i /etc/network/interfaces.d/50-cloud-init
|
||||
fi
|
||||
fi
|
||||
# 去除空行之外的重复行
|
||||
remove_duplicate_lines "/etc/network/interfaces"
|
||||
remove_duplicate_lines "/etc/network/interfaces.new"
|
||||
remove_duplicate_lines "/etc/network/interfaces.d/50-cloud-init"
|
||||
|
||||
# 如果是国内服务器则替换CT源为国内镜像源
|
||||
if [[ -n "${CN}" ]]; then
|
||||
|
|
Loading…
Reference in a new issue