diff --git a/scripts/post_install/auto_post_install.sh b/scripts/post_install/auto_post_install.sh index ce20dd7..129eed6 100644 --- a/scripts/post_install/auto_post_install.sh +++ b/scripts/post_install/auto_post_install.sh @@ -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 diff --git a/scripts/post_install/customizable_post_install.sh b/scripts/post_install/customizable_post_install.sh index d51d3a1..d541517 100644 --- a/scripts/post_install/customizable_post_install.sh +++ b/scripts/post_install/customizable_post_install.sh @@ -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")