post-pbs: increase enterprise recognition (#7280)
This commit is contained in:
parent
616c736428
commit
f7791fe2ff
@ -196,17 +196,30 @@ EOF
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# --- Enterprise repo ---
|
# --- Enterprise repo ---
|
||||||
if ! component_exists_in_sources "pbs-enterprise"; then
|
if component_exists_in_sources "pbs-enterprise"; then
|
||||||
cat >/etc/apt/sources.list.d/pbs-enterprise.sources <<EOF
|
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS Enterprise Repository" --menu \
|
||||||
Types: deb
|
"Enterprise repository detected.
|
||||||
URIs: https://enterprise.proxmox.com/debian/pbs
|
|
||||||
Suites: trixie
|
You normally need a valid subscription for this.
|
||||||
Components: pbs-enterprise
|
Disable it (recommended)?" 14 58 2 "yes" " " "no" " " 3>&2 2>&1 1>&3)
|
||||||
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
|
case $CHOICE in
|
||||||
EOF
|
yes)
|
||||||
msg_ok "Added 'pbs-enterprise' repository"
|
sed -i '/pbs-enterprise/ s/^/# /' /etc/apt/sources.list.d/pbs-enterprise.sources
|
||||||
|
msg_ok "Disabled 'pbs-enterprise' repository"
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
msg_error "Keeping 'pbs-enterprise' active (subscription required!)"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
msg_ok "'pbs-enterprise' repository already present"
|
cat >/etc/apt/sources.list.d/pbs-enterprise.sources <<EOF
|
||||||
|
# Types: deb
|
||||||
|
# URIs: https://enterprise.proxmox.com/debian/pbs
|
||||||
|
# Suites: trixie
|
||||||
|
# Components: pbs-enterprise
|
||||||
|
# Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
|
||||||
|
EOF
|
||||||
|
msg_ok "Added 'pbs-enterprise' repository (disabled)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --- No-subscription repo ---
|
# --- No-subscription repo ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user