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