From 7cf974069d08caac4a0cde8ccbbd6beee5a6adc7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sun, 3 Aug 2025 20:04:00 +0200 Subject: [PATCH] fixes --- install/proxmox-backup-server-install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install/proxmox-backup-server-install.sh b/install/proxmox-backup-server-install.sh index 502ea9e9..ee20e1dd 100644 --- a/install/proxmox-backup-server-install.sh +++ b/install/proxmox-backup-server-install.sh @@ -13,20 +13,20 @@ setting_up_container network_check update_os -msg_info "Installing Proxmox Backup Server" read -rp "${TAB3}Do you want to use the Enterprise repository (requires valid subscription key)? [y/N]: " USE_ENTERPRISE_REPO +msg_info "Installing Proxmox Backup Server" if [[ "$USE_ENTERPRISE_REPO" =~ ^([yY].*)$ ]]; then - echo "deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise" >/etc/apt/sources.list.d/pbs-enterprise.list - sed -i '/pbs-no-subscription/s/^/#/' /etc/apt/sources.list - msg_custom "Enterprise repository enabled. Make sure your subscription key is installed." + echo "deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise" >/etc/apt/sources.list.d/pbs-enterprise.list + sed -i '/pbs-no-subscription/s/^/#/' /etc/apt/sources.list + msg_custom "Enterprise repository enabled. Make sure your subscription key is installed." else - if ! grep -q "pbs-no-subscription" /etc/apt/sources.list; then - echo "deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription" >>/etc/apt/sources.list - else - sed -i '/pbs-no-subscription/s/^#//' /etc/apt/sources.list - fi - rm -f /etc/apt/sources.list.d/pbs-enterprise.list + if ! grep -q "pbs-no-subscription" /etc/apt/sources.list; then + echo "deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription" >>/etc/apt/sources.list + else + sed -i '/pbs-no-subscription/s/^#//' /etc/apt/sources.list + fi + rm -f /etc/apt/sources.list.d/pbs-enterprise.list fi $STD apt-get update