diff --git a/build_backend.sh b/build_backend.sh index ba5fb1a..e271799 100644 --- a/build_backend.sh +++ b/build_backend.sh @@ -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")