This commit is contained in:
MacRimi
2025-03-03 17:52:56 +01:00
parent c57a46403e
commit dad0d30957
3 changed files with 31 additions and 12 deletions

View File

@@ -156,12 +156,12 @@ apt_upgrade() {
msg_ok "$(translate "Free public Proxmox repository enabled")"
fi
# Enable Proxmox testing repository
if [ ! -f /etc/apt/sources.list.d/pve-testing-repo.list ] || ! grep -q "pvetest" /etc/apt/sources.list.d/pve-testing-repo.list; then
msg_info "$(translate "Enabling Proxmox testing repository...")"
echo -e "deb http://download.proxmox.com/debian/pve ${OS_CODENAME} pvetest\\n" > /etc/apt/sources.list.d/pve-testing-repo.list
msg_ok "$(translate "Proxmox testing repository enabled")"
fi
# # Enable Proxmox testing repository
# if [ ! -f /etc/apt/sources.list.d/pve-testing-repo.list ] || ! grep -q "pvetest" /etc/apt/sources.list.d/pve-testing-repo.list; then
# msg_info "$(translate "Enabling Proxmox testing repository...")"
# echo -e "deb http://download.proxmox.com/debian/pve ${OS_CODENAME} pvetest\\n" > /etc/apt/sources.list.d/pve-testing-repo.list
# msg_ok "$(translate "Proxmox testing repository enabled")"
# fi
# Configure main Debian repositories
if ! grep -q "${OS_CODENAME}-security" /etc/apt/sources.list; then
@@ -2145,6 +2145,26 @@ configure_fastfetch() {
# ==========================================================
add_repo_test() {
msg_info2 "$(translate "Enable Proxmox testing repository...")"
# Enable Proxmox testing repository
if [ ! -f /etc/apt/sources.list.d/pve-testing-repo.list ] || ! grep -q "pvetest" /etc/apt/sources.list.d/pve-testing-repo.list; then
msg_info "$(translate "Enabling Proxmox testing repository...")"
echo -e "deb http://download.proxmox.com/debian/pve ${OS_CODENAME} pvetest\\n" > /etc/apt/sources.list.d/pve-testing-repo.list
msg_ok "$(translate "Proxmox testing repository enabled")"
fi
msg_success "$(translate "Proxmox testing repository has been successfully enabled")"
}
@@ -2154,6 +2174,7 @@ configure_fastfetch() {
# Main menu function
main_menu() {
local HEADER=$(printf " %-56s %10s" "$(translate "Description")" "$(translate "Category")")
@@ -2207,6 +2228,7 @@ local options=(
"Performance|Use pigz for faster gzip compression|PIGZ"
"Optional|Install and configure Fastfetch|FASTFETCH"
"Optional|Add latest Ceph support|CEPH"
"Optional|Add Proxmox testing repository|REPOTEST"
"Optional|Enable High Availability services|ENABLE_HA"
)
@@ -2384,6 +2406,9 @@ for index in "${!sorted_options[@]}"; do
CEPH)
install_ceph
;;
REPOTEST)
add_repo_test
;;
ENABLE_HA)
enable_ha
;;