Update install_pve.sh

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

View file

@ -292,7 +292,10 @@ install_required_modules() {
_green "$module 已经安装!"
else
apt-get install -y $module
_green "$module 已成功安装!"
if [ $? -ne 0 ]; then
apt-get install -y $module --fix-missing
fi
_green "$module 已尝试过安装!"
fi
done
}