Update build_backend.sh

This commit is contained in:
spiritLHLS 2023-02-25 21:11:17 +08:00 committed by GitHub
parent 67ac879fd0
commit d13bbbb4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,8 +18,9 @@ else
_green "资源池 $POOL_ID 已创建!"
fi
# 安装必备模块并删除apt源中的无效订阅
rm -f /etc/apt/sources.list.d/pve-enterprise.list
# 安装必备模块并替换apt源中的无效订阅
cp /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
echo "deb http://download.proxmox.com/debian/pve $(lsb_release -sc) pve-no-subscription" > /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
install_required_modules() {
modules=("sudo" "ifupdown2" "lshw" "iproute2" "net-tools" "cloud-init" "novnc" "isc-dhcp-server")