mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update Post Install
This commit is contained in:
@@ -132,19 +132,20 @@ remove_subscription_banner() {
|
|||||||
local pve_version
|
local pve_version
|
||||||
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
|
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
|
||||||
if [[ -z "$pve_version" ]]; then
|
if [[ -z "$pve_version" ]]; then
|
||||||
msg_error "Unable to detect Proxmox version."
|
msg_error "Unable to detect Proxmox version."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$pve_version" -ge 9 ]]; then
|
if [[ "$pve_version" -ge 9 ]]; then
|
||||||
cleanup
|
|
||||||
if ! whiptail --title "Proxmox VE 9.x Subscription Banner Removal" \
|
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
|
--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."
|
msg_warn "Banner removal cancelled by user."
|
||||||
return 1
|
return 1
|
||||||
fi
|
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
|
else
|
||||||
if ! whiptail --title "Proxmox VE 8.x Subscription Banner Removal" \
|
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
|
--yesno "Do you want to remove the Proxmox subscription banner from the web interface for PVE $pve_version?" 10 70; then
|
||||||
|
|||||||
@@ -2902,7 +2902,7 @@ remove_subscription_banner() {
|
|||||||
|
|
||||||
if [[ "$pve_version" -ge 9 ]]; then
|
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
|
else
|
||||||
|
|
||||||
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh")
|
bash <(curl -fsSL "$REPO_URL/scripts/global/remove-banner-pve8.sh")
|
||||||
|
|||||||
Reference in New Issue
Block a user