mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update install_pve.sh
This commit is contained in:
parent
a67f1a75b0
commit
a5448db6c6
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue