diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index ee20aa9..bc6d609 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -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 ;; diff --git a/web/app/docs/post-install/basic-settings/page.tsx b/web/app/docs/post-install/basic-settings/page.tsx index 4728a47..a17cd33 100644 --- a/web/app/docs/post-install/basic-settings/page.tsx +++ b/web/app/docs/post-install/basic-settings/page.tsx @@ -326,10 +326,6 @@ sudo timedatectl set-timezone "$TIMEZONE" Added: Free public Proxmox repository (pve-public-repo.list) - This provides access to free Proxmox VE updates and packages. -
  • - Added: Proxmox testing repository (pve-testing-repo.list) - This repository contains the - latest, potentially unstable updates for testing purposes. -
  • Configured: Main Debian repositories - These provide access to the core Debian packages and security updates. @@ -351,8 +347,6 @@ fi # Enable free public Proxmox repository echo "deb http://download.proxmox.com/debian/pve $(lsb_release -cs) pve-no-subscription" | sudo tee /etc/apt/sources.list.d/pve-public-repo.list -# Enable Proxmox testing repository -echo "deb http://download.proxmox.com/debian/pve $(lsb_release -cs) pvetest" | sudo tee /etc/apt/sources.list.d/pve-testing-repo.list # Configure main Debian repositories cat <