From d13bbbb4c141bc3c41e1fa77cb7ceb7560c7fadd Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Sat, 25 Feb 2023 21:11:17 +0800 Subject: [PATCH] Update build_backend.sh --- build_backend.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")