From 8efa5711093f460bb99580d89fa5276ec5eed382 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 13 Feb 2023 18:56:00 +0800 Subject: [PATCH] Update install_pve7.sh --- install_pve7.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install_pve7.sh b/install_pve7.sh index 89f8c3a..0e83aa8 100644 --- a/install_pve7.sh +++ b/install_pve7.sh @@ -51,9 +51,10 @@ echo "$repo_url" >> /etc/apt/sources.list # 下载pve apt-get update && apt-get full-upgrade -apt-get install debian-keyring debian-archive-keyring -y -apt-get autoremove -apt-get update +if [ $? -ne 0 ]; then + apt-get install debian-keyring debian-archive-keyring -y + apt-get update && apt-get full-upgrade +fi apt-get -y install proxmox-ve postfix open-iscsi # 检查pve