From ae58aeefc505c8dc310a5ca2b3017910d35a271e Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 13 Feb 2023 17:59:35 +0800 Subject: [PATCH] Update install_pve7.2.sh --- install_pve7.2.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install_pve7.2.sh b/install_pve7.2.sh index 1ef92e7..80c0b40 100644 --- a/install_pve7.2.sh +++ b/install_pve7.2.sh @@ -10,6 +10,13 @@ fi if ! command -v wget > /dev/null 2>&1; then apt-get install -y wget 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) if [ "$version" == "jessie" ]; then repo_url="deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve jessie pve-no-subscription" @@ -27,6 +34,7 @@ else fi # 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 + apt-get update apt-get install debian-keyring debian-archive-keyring -y apt-get autoremove