whiptail --title "Proxmox VE 7 Post Install" --menu "The 'pve-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pve-enterprise' repository?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
header_info
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --menu "The 'pve-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pve-enterprise' repository?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Disabling 'pve-enterprise' repository"
@ -72,15 +61,9 @@ start_routines() {
;;
esac
CHOICE=$(
whiptail --title "Proxmox VE 7 Post Install" --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\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --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\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Correcting Proxmox VE 7 Sources"
@ -96,15 +79,9 @@ EOF
;;
esac
CHOICE=$(
whiptail --title "Proxmox VE 7 Post Install" --menu "The 'pve-no-subscription' repository provides access to all of the open-source components of Proxmox VE.\n \nEnable 'pve-no-subscription' repository?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --menu "The 'pve-no-subscription' repository provides access to all of the open-source components of Proxmox VE.\n \nEnable 'pve-no-subscription' repository?"14582\
whiptail --title "Proxmox VE 7 Post Install" --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"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --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"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Adding 'pvetest' repository and set disabled"
@ -140,15 +111,9 @@ EOF
;;
esac
CHOICE=$(
whiptail --title "Proxmox VE 7 Post Install" --menu "This will disable the nag message reminding you to purchase a subscription every time you log in to the web interface.\n \nDisable subscription nag?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --menu "This will disable the nag message reminding you to purchase a subscription every time you log in to the web interface.\n \nDisable subscription nag?"14582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Disabling subscription nag"
@ -161,36 +126,64 @@ EOF
;;
esac
CHOICE=$(
whiptail --title "Proxmox VE 7 Post Install" --menu "\nUpdate Proxmox VE 7 now?"11582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3
)
exit_status=$?
if[$exit_status==1];then
exit_script
fi
CHOICE=$(whiptail --title "Proxmox VE 7 Post Install" --menu "\nUpdate Proxmox VE 7 now?"11582\
"yes"" "\
"no"" " 3>&2 2>&1 1>&3)
case$CHOICE in
yes)
msg_info "Updating Proxmox VE 7 (Patience)"
apt-get update &>/dev/null
apt-get -y dist-upgrade &>/dev/null
msg_ok "Updated Proxmox VE 7 (Reboot recommended)"
msg_ok "Updated Proxmox VE 7"
;;
no)
msg_error "Selected no to Updating Proxmox VE 7"
;;
esac
CHOICE=$(
whiptail --title "Proxmox VE 7 Post Install" --menu "\nReboot Proxmox VE 7 now?"11582\
microcode=""
cpu=$(lscpu | grep -oP 'Vendor ID:\s*\K\S+')
if["$cpu"=="GenuineIntel"];then
if lscpu | awk '/Model name:.*N/ {exit 0} END {exit 1}';then
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 install pve-kernel-6.2
microcode="need"
msg_ok "Installed Proxmox 6.2 kernel"
;;
no)
msg_error "Selected no to Installing the Proxmox 6.2 kernel"
;;
esac
fi
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\