CHOICE=$(whiptail --title "PVE-ENTERPRISE" --menu "The 'pve-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pve-enterprise' repository?"14582\
whiptail --msgbox --title "N-SERIES PROCESSOR DETECTED""To ensure compatibility with Proxmox VE on systems equipped with N-series processors, it is recommended to install Proxmox Virtual Environment 8"1058
fi
CHOICE=$(whiptail --title "SOURCES" --menu "The package manager will use the correct sources to update and install packages on your Proxmox VE server.\n \nCorrect Proxmox VE sources?"14582\
"yes"" "\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
case$CHOICE in
yes)
yes)
msg_info "Disabling 'pve-enterprise' repository"
msg_info "Correcting Proxmox VE Sources"
sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/pve-enterprise.list
cat <<EOF >/etc/apt/sources.list
msg_ok "Disabled 'pve-enterprise' repository"
deb http://ftp.debian.org/debian $(VERSION) main contrib
deb http://ftp.debian.org/debian $(VERSION)-updates main contrib
deb http://security.debian.org/debian-security $(VERSION)-security main contrib
EOF
msg_ok "Corrected Proxmox VE Sources"
;;
;;
no)
no)
msg_error "Selected no to Disabling 'pve-enterprise' repository"
msg_error "Selected no to Correcting Proxmox VE Sources"
;;
;;
esac
esac
CHOICE=$(whiptail --title "SOURCES" --menu "The package manager will use the correct sources to update and install packages on your Proxmox VE 7 server.\n \nCorrect Proxmox VE 7 sources?" 14582\
CHOICE=$(whiptail --title "PVE-ENTERPRISE" --menu "The 'pve-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pve-enterprise' repository?" 14582\
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
deb http://download.proxmox.com/debian/pve $(VERSION) pve-no-subscription
EOF
EOF
msg_ok "Enabled 'pve-no-subscription' repository"
msg_ok "Enabled 'pve-no-subscription' repository"
;;
;;
@ -95,14 +101,33 @@ EOF
;;
;;
esac
esac
if[["$(VERSION)"=="bookworm"]];then
CHOICE=$(whiptail --title "CEPH PACKAGE REPOSITORIES" --menu "The 'Ceph Package Repositories' provides access to both the 'no-subscription' and 'enterprise' repositories.\n \nEnable 'ceph package repositories?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Enabling 'ceph package repositories'"
cat <<EOF >/etc/apt/sources.list.d/ceph.list
# deb http://download.proxmox.com/debian/ceph-quincy bookworm enterprise
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
EOF
msg_ok "Enabled 'ceph package repositories'"
;;
no)
msg_error "Selected no to Enabling 'ceph package repositories'"
;;
esac
fi
CHOICE=$(whiptail --title "PVETEST" --menu "The 'pvetest' repository can give advanced users access to new features and updates before they are officially released.\n \nAdd (Disabled) 'pvetest' repository?"14582\
CHOICE=$(whiptail --title "PVETEST" --menu "The 'pvetest' repository can give advanced users access to new features and updates before they are officially released.\n \nAdd (Disabled) 'pvetest' repository?"14582\
"yes"" "\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
case$CHOICE in
yes)
yes)
msg_info "Adding 'pvetest' repository and set disabled"
msg_info "Adding 'pvetest' repository and set disabled"
# deb http://download.proxmox.com/debian/pve bullseye pvetest
# deb http://download.proxmox.com/debian/pve $(VERSION) pvetest
EOF
EOF
msg_ok "Added 'pvetest' repository"
msg_ok "Added 'pvetest' repository"
;;
;;
@ -117,12 +142,14 @@ EOF
"no"" " 3>&2 2>&1 1>&3)
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
case$CHOICE in
yes)
yes)
whiptail --msgbox --title "Support Subscriptions""Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software."1058
msg_info "Disabling subscription nag"
msg_info "Disabling subscription nag"
echo"DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
echo"DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
msg_ok "Disabled subscription nag (Delete browser cache)"
msg_ok "Disabled subscription nag (Delete browser cache)"
;;
;;
no)
no)
whiptail --msgbox --title "Support Subscriptions""Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software."1058
msg_error "Selected no to Disabling subscription nag"
msg_error "Selected no to Disabling subscription nag"
;;
;;
esac
esac
@ -149,70 +176,33 @@ EOF
esac
esac
fi
fi
CHOICE=$(whiptail --title "UPDATE" --menu "\nUpdate Proxmox VE 7 now?" 11582\
CHOICE=$(whiptail --title "UPDATE" --menu "\nUpdate Proxmox VE now?" 11582\
CHOICE=$(whiptail --title "N-SERIES PROCESSOR DETECTED" --menu "\nTo ensure compatibility with Proxmox VE on systems equipped with N-series processors, it is recommended to install the Proxmox 6.2 kernel.\n\nInstall the Proxmox 6.2 kernel now?"16582\
"yes"" "\
"no"" " 3>&1 1>&2 2>&3)
case$CHOICE in
yes)
msg_info "Installing Proxmox 6.2 kernel"
apt-get install -y pve-kernel-6.2 &>/dev/null
microcode="need"
msg_ok "Installed Proxmox 6.2 kernel"
;;
no)
msg_error "Selected no to Installing the Proxmox 6.2 kernel"
;;
esac
fi
if["$microcode"=="need"];then
CHOICE=$(whiptail --title "INTEL MICROCODE" --menu "\nMicrocode updates can fix hardware bugs, improve performance, and enhance security features of the processor.\n\nInstall the Intel Microcode now?"16582\