mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update install_pve.sh
This commit is contained in:
parent
add6e2f5d3
commit
6859c69a01
1 changed files with 1 additions and 5 deletions
|
@ -46,7 +46,7 @@ install_package() {
|
|||
_green "$package_name tried to install but failed, exited the program"
|
||||
_green "$package_name 已尝试安装但失败,退出程序"
|
||||
exit 1
|
||||
elif [ "$package_name" == "proxmox-ve" ]; then
|
||||
elif [ $? -ne 0 ] && [ "$package_name" == "proxmox-ve" ]; then
|
||||
if echo "$apt_output" | grep -qE 'DEBIAN_FRONTEND=dialog dpkg --configure grub-pc' &&
|
||||
echo "$apt_output" | grep -qE 'dpkg --configure -a' &&
|
||||
echo "$apt_output" | grep -qE 'dpkg: error processing package grub-pc \(--configure\):'
|
||||
|
@ -64,10 +64,6 @@ install_package() {
|
|||
exit 1
|
||||
fi
|
||||
apt-get install -y $package_name --fix-missing
|
||||
elif [ $? -ne 0 ]; then
|
||||
_green "$package_name tried to install but failed, exited the program"
|
||||
_green "$package_name 已尝试安装但失败,退出程序"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
_green "$package_name tried to install"
|
||||
|
|
Loading…
Reference in a new issue