From 1c099616d55b2ffe101ce129e3044021f76c4b0a Mon Sep 17 00:00:00 2001 From: kai Date: Thu, 14 May 2026 14:32:53 +0000 Subject: [PATCH] =?UTF-8?q?Logrotate=20Funktion=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install-logrotate.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/install-logrotate.sh diff --git a/scripts/install-logrotate.sh b/scripts/install-logrotate.sh new file mode 100644 index 0000000..da40e5d --- /dev/null +++ b/scripts/install-logrotate.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -euo pipefail + +REPO_DIR="/opt/pingu/repo" + +echo "[INFO] Installiere logrotate config..." + +sudo cp "$REPO_DIR/configs/logrotate/pingu" /etc/logrotate.d/pingu + +sudo chmod 644 /etc/logrotate.d/pingu + +echo "[OK] Logrotate config installiert" \ No newline at end of file