From a5448db6c64a44ce08e9e1491d97395798ad509e Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Tue, 6 Jun 2023 18:24:52 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index c6e0710..e3e58ed 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -259,7 +259,18 @@ if echo $output | grep -q "NO_PUBKEY"; then _yellow "try sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys missing key" exit 1 fi -apt-get install -y proxmox-ve postfix open-iscsi +apt-get install -y proxmox-ve +if [ $? -ne 0 ]; then + apt-get install -y proxmox-ve --fix-missing +fi +apt-get install -y postfix +if [ $? -ne 0 ]; then + apt-get install -y postfix --fix-missing +fi +apt-get install -y open-iscsi +if [ $? -ne 0 ]; then + apt-get install -y open-iscsi --fix-missing +fi # 如果是国内服务器则替换CT源为国内镜像源 if [[ -n "${CN}" ]]; then