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")" msg_ok "$(translate "Free public Proxmox repository enabled")"
fi fi
# 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 # 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...")" # 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 # 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")" # msg_ok "$(translate "Proxmox testing repository enabled")"
fi # fi
# Configure main Debian repositories # Configure main Debian repositories
if ! grep -q "${OS_CODENAME}-security" /etc/apt/sources.list; then 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 function
main_menu() { main_menu() {
local HEADER=$(printf " %-56s %10s" "$(translate "Description")" "$(translate "Category")") local HEADER=$(printf " %-56s %10s" "$(translate "Description")" "$(translate "Category")")
@ -2207,6 +2228,7 @@ local options=(
"Performance|Use pigz for faster gzip compression|PIGZ" "Performance|Use pigz for faster gzip compression|PIGZ"
"Optional|Install and configure Fastfetch|FASTFETCH" "Optional|Install and configure Fastfetch|FASTFETCH"
"Optional|Add latest Ceph support|CEPH" "Optional|Add latest Ceph support|CEPH"
"Optional|Add Proxmox testing repository|REPOTEST"
"Optional|Enable High Availability services|ENABLE_HA" "Optional|Enable High Availability services|ENABLE_HA"
) )
@ -2384,6 +2406,9 @@ for index in "${!sorted_options[@]}"; do
CEPH) CEPH)
install_ceph install_ceph
;; ;;
REPOTEST)
add_repo_test
;;
ENABLE_HA) ENABLE_HA)
enable_ha enable_ha
;; ;;

View File

@ -326,10 +326,6 @@ sudo timedatectl set-timezone "$TIMEZONE"
<strong>Added:</strong> Free public Proxmox repository (pve-public-repo.list) - This provides access to free <strong>Added:</strong> Free public Proxmox repository (pve-public-repo.list) - This provides access to free
Proxmox VE updates and packages. Proxmox VE updates and packages.
</li> </li>
<li>
<strong>Added:</strong> Proxmox testing repository (pve-testing-repo.list) - This repository contains the
latest, potentially unstable updates for testing purposes.
</li>
<li> <li>
<strong>Configured:</strong> Main Debian repositories - These provide access to the core Debian packages and <strong>Configured:</strong> Main Debian repositories - These provide access to the core Debian packages and
security updates. security updates.
@ -351,8 +347,6 @@ fi
# Enable free public Proxmox repository # 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 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 # Configure main Debian repositories
cat <<EOF | sudo tee /etc/apt/sources.list cat <<EOF | sudo tee /etc/apt/sources.list

BIN
web/public/basic/tmux.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 KiB