mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-25 13:51:15 +00:00
Update
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
Reference in New Issue
Block a user