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 8 server.\n \nCorrect Proxmox VE 8 sources?"14582\
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 "Correcting Proxmox VE 8 Sources"
msg_info "Correcting Proxmox VE Sources"
cat <<EOF >/etc/apt/sources.list
cat <<EOF >/etc/apt/sources.list
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian $(VERSION) main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib
deb http://ftp.debian.org/debian $(VERSION)-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib
deb http://security.debian.org/debian-security $(VERSION)-security main contrib
EOF
EOF
msg_ok "Corrected Proxmox VE 8 Sources"
msg_ok "Corrected Proxmox VE Sources"
;;
;;
no)
no)
msg_error "Selected no to Correcting Proxmox VE 8 Sources"
msg_error "Selected no to Correcting Proxmox VE Sources"
deb http://download.proxmox.com/debian/pve bookworm 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"
;;
;;
@ -98,22 +101,24 @@ EOF
;;
;;
esac
esac
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\
if[["$(VERSION)"=="bookworm"]];then
"yes"" "\
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\
"no"" " 3>&2 2>&1 1>&3)
"yes"" "\
case$CHOICE in
"no"" " 3>&2 2>&1 1>&3)
yes)
case$CHOICE in
msg_info "Enabling 'ceph package repositories'"
yes)
cat <<EOF >/etc/apt/sources.list.d/ceph.list
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 enterprise
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
EOF
EOF
msg_ok "Enabled 'ceph package repositories'"
msg_ok "Enabled 'ceph package repositories'"
;;
;;
no)
no)
msg_error "Selected no to Enabling 'ceph package repositories'"
msg_error "Selected no to Enabling 'ceph package repositories'"
;;
;;
esac
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"" "\
@ -122,7 +127,7 @@ EOF
yes)
yes)
msg_info "Adding 'pvetest' repository and set disabled"
msg_info "Adding 'pvetest' repository and set disabled"