mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 18:02:25 +08:00
Update install_pve.sh
This commit is contained in:
parent
6a3a5458c8
commit
3b49b17ea1
1 changed files with 9 additions and 0 deletions
|
@ -124,10 +124,19 @@ case $version in
|
|||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# 6.x
|
||||
if [ ! -f "/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg" ]; then
|
||||
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
|
||||
chmod +r /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
|
||||
fi
|
||||
|
||||
# 7.x
|
||||
if [ ! -f "/etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg" ]; then
|
||||
wget http://download.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
|
||||
chmod +r /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
|
||||
fi
|
||||
|
||||
if ! grep -q "^deb.*pve-no-subscription" /etc/apt/sources.list; then
|
||||
echo "$repo_url" >> /etc/apt/sources.list
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue