mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 10:09:03 +08:00
Update
This commit is contained in:
parent
9bada8e01b
commit
034b1f4251
2 changed files with 22 additions and 26 deletions
|
@ -18,7 +18,6 @@
|
|||
- 适配了ARM架构且已在hz的ARM机器上测试(Debian11及其更旧的系统)无问题,感谢[Proxmox-Arm64](https://github.com/jiangcuo/Proxmox-Arm64)提供的第三方补丁,本项目目前支持X86_64架构和ARM架构了
|
||||
- 修改部分附加文件的存储位置至于```/usr/local/bin/```目录下
|
||||
- CN的IP检测增加一个检测源,对CN的特殊处理增加对APT源的特殊处理
|
||||
- 暂时去除AppArmor模块的检测和自动安装
|
||||
|
||||
[更新日志](CHANGELOG.md)
|
||||
|
||||
|
|
|
@ -86,31 +86,28 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# # 检测AppArmor模块
|
||||
# if ! dpkg -s apparmor > /dev/null 2>&1; then
|
||||
# _green "AppArmor is being installed..."
|
||||
# _green "正在安装 AppArmor..."
|
||||
# apt-get update
|
||||
# apt-get install -y apparmor
|
||||
# fi
|
||||
# if [ $? -ne 0 ]; then
|
||||
# apt-get install -y apparmor --fix-missing
|
||||
# fi
|
||||
# if ! systemctl is-active --quiet apparmor.service; then
|
||||
# _green "Starting the AppArmor service..."
|
||||
# _green "启动 AppArmor 服务..."
|
||||
# systemctl enable apparmor.service
|
||||
# systemctl start apparmor.service
|
||||
# fi
|
||||
# if ! lsmod | grep -q apparmor; then
|
||||
# _green "Loading AppArmor kernel module..."
|
||||
# _green "正在加载 AppArmor 内核模块..."
|
||||
# modprobe apparmor
|
||||
# fi
|
||||
# if ! lsmod | grep -q apparmor; then
|
||||
# _yellow "AppArmor is still not loaded, please execute reboot to reboot the system to load"
|
||||
# _yellow "AppArmor 仍未加载,请执行 reboot 重新启动系统加载"
|
||||
# fi
|
||||
# 检测AppArmor模块
|
||||
if ! dpkg -s apparmor > /dev/null 2>&1; then
|
||||
_green "AppArmor is being installed..."
|
||||
_green "正在安装 AppArmor..."
|
||||
apt-get update
|
||||
apt-get install -y apparmor
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
apt-get install -y apparmor --fix-missing
|
||||
fi
|
||||
if ! systemctl is-active --quiet apparmor.service; then
|
||||
_green "Starting the AppArmor service..."
|
||||
_green "启动 AppArmor 服务..."
|
||||
systemctl enable apparmor.service
|
||||
systemctl start apparmor.service
|
||||
fi
|
||||
if ! lsmod | grep -q apparmor; then
|
||||
_green "Loading AppArmor kernel module..."
|
||||
_green "正在加载 AppArmor 内核模块..."
|
||||
modprobe apparmor
|
||||
fi
|
||||
sleep 3
|
||||
_yellow "Please execute reboot to reboot the system to load the PVE kernel."
|
||||
_yellow "请执行 reboot 重新启动系统加载PVE内核"
|
||||
echo "1" > "/root/build_backend_pve.txt"
|
||||
|
|
Loading…
Reference in a new issue