From ea120fc642f14244dfe944b14ba6d3a0fe262911 Mon Sep 17 00:00:00 2001 From: "manuel.maier" Date: Fri, 23 Jan 2026 22:20:16 +0100 Subject: [PATCH] =?UTF-8?q?set=5Fpbs=5Frepos.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- set_pbs_repos.sh | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 set_pbs_repos.sh diff --git a/set_pbs_repos.sh b/set_pbs_repos.sh new file mode 100644 index 0000000..71b5064 --- /dev/null +++ b/set_pbs_repos.sh @@ -0,0 +1,68 @@ +#!/bin/bash +# ===================================================== +# Proxmox Backup Server Repository Setup (No-Subscription) +# Debian 13 (trixie) | deb822 (.sources) +# Enterprise -> No-Subscription +# ===================================================== + +# Farben / Layout +BOLD="\033[1m" +GREEN="\033[32m" +CYAN="\033[36m" +RESET="\033[0m" +INDENT=" " + +# Root-Check +if [[ $EUID -ne 0 ]]; then + echo -e "${INDENT}${BOLD}Bitte als Root ausführen!${RESET}" + exit 1 +fi + +echo -e "${BOLD}${CYAN}" +echo -e "${INDENT}==============================================" +echo -e "${INDENT} Proxmox Backup Server – Repository Setup" +echo -e "${INDENT} No-Subscription | deb822 Standard" +echo -e "${INDENT}==============================================" +echo -e "${RESET}" + +# Proxmox Keyring prüfen +KEYRING="/usr/share/keyrings/proxmox-archive-keyring.gpg" +if [[ ! -f "$KEYRING" ]]; then + echo -e "${INDENT}==> Proxmox Keyring fehlt – installiere..." + apt update >/dev/null + apt install -y proxmox-archive-keyring +fi + +# ----------------------------------------------------- +# PBS Repos +# ----------------------------------------------------- + +# pbs-enterprise.disabled +cat < /etc/apt/sources.list.d/pbs-enterprise.sources +Types: deb +URIs: https://enterprise.proxmox.com/debian/pbs +Suites: trixie +Components: pbs-enterprise +Signed-By: ${KEYRING} +Enabled: false +EOF + +# pbs-no-subscription.enabled +cat < /etc/apt/sources.list.d/proxmox.sources +Types: deb +URIs: http://download.proxmox.com/debian/pbs/ +Suites: trixie +Components: pbs-no-subscription +Signed-By: ${KEYRING} +Enabled: true +EOF + +# ----------------------------------------------------- +# APT Update +# ----------------------------------------------------- +echo -e "${INDENT}==> APT Update..." +apt update && apt dist-upgrade -y + +echo +echo -e "${GREEN}${INDENT}✔ PBS Repositories erfolgreich eingerichtet!${RESET}" +echo -e "${INDENT}PBS nutzt jetzt No-Subscription Repos." \ No newline at end of file