Update Post Install

This commit is contained in:
MacRimi
2025-10-31 17:57:09 +01:00
parent 9543148887
commit f33c451a19
2 changed files with 4 additions and 3 deletions

View File

@@ -132,19 +132,20 @@ remove_subscription_banner() {
local pve_version
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
cleanup
if [[ -z "$pve_version" ]]; then
msg_error "Unable to detect Proxmox version."
return 1
fi
if [[ "$pve_version" -ge 9 ]]; then
cleanup
if ! whiptail --title "Proxmox VE 9.x Subscription Banner Removal" \
--yesno "Do you want to remove the Proxmox subscription banner from the web interface for PVE $pve_version?" 10 70; then
msg_warn "Banner removal cancelled by user."
return 1
fi
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve9_2.sh")
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve-v3.sh")
else
if ! whiptail --title "Proxmox VE 8.x Subscription Banner Removal" \
--yesno "Do you want to remove the Proxmox subscription banner from the web interface for PVE $pve_version?" 10 70; then

View File

@@ -2902,7 +2902,7 @@ remove_subscription_banner() {
if [[ "$pve_version" -ge 9 ]]; then
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve9_2.sh")
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve-v3.sh")
else
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh")