From caecdcc7e165f5ec7587fe639d863c817021c1dd Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 16 Feb 2023 18:37:04 +0800 Subject: [PATCH] Update install_pve6.sh --- install_pve6.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install_pve6.sh b/install_pve6.sh index 7a39ac8..a93b7a7 100644 --- a/install_pve6.sh +++ b/install_pve6.sh @@ -72,7 +72,15 @@ case $version in ;; *) _red "Error: Unsupported Debian version" - exit 1 + reading "是否要继续安装(非Debian系会爆上面这个警告)?(回车则默认不继续安装) [y/n] " confirm + echo "" + if [ "$confirmbbr" != "y" ]; then + exit 1 + fi + repo_url="deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" + if [[ -n "${CN}" ]]; then + repo_url="deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" + fi ;; esac wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg