Update install_pve.sh

This commit is contained in:
spiritlhl 2023-06-06 18:24:52 +08:00 committed by GitHub
parent a67f1a75b0
commit a5448db6c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" _yellow "try sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys missing key"
exit 1 exit 1
fi 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源为国内镜像源 # 如果是国内服务器则替换CT源为国内镜像源
if [[ -n "${CN}" ]]; then if [[ -n "${CN}" ]]; then