mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update install_pve7.2.sh
This commit is contained in:
parent
113975f414
commit
ae58aeefc5
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue