Update install_pve7.2.sh

This commit is contained in:
spiritLHLS 2023-02-13 17:59:35 +08:00 committed by GitHub
parent 113975f414
commit ae58aeefc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,13 @@ fi
if ! command -v wget > /dev/null 2>&1; then if ! command -v wget > /dev/null 2>&1; then
apt-get install -y wget apt-get install -y wget
fi fi
if ! command -v curl > /dev/null 2>&1; then
apt-get install -y curl
fi
ip=$(curl -s ip.sb)
echo "$ip pve.proxmox.com pve" >> /etc/hosts
version=$(lsb_release -cs) version=$(lsb_release -cs)
if [ "$version" == "jessie" ]; then if [ "$version" == "jessie" ]; then
repo_url="deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve jessie pve-no-subscription" repo_url="deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve jessie pve-no-subscription"
@ -27,6 +34,7 @@ else
fi fi
# echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list # echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
echo "$repo_url" >> /etc/apt/sources.list echo "$repo_url" >> /etc/apt/sources.list
apt-get update apt-get update
apt-get install debian-keyring debian-archive-keyring -y apt-get install debian-keyring debian-archive-keyring -y
apt-get autoremove apt-get autoremove