From 4864f6789c8f60ca457f5aa82972dad5143431b8 Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 25 Apr 2026 09:59:19 +0000 Subject: [PATCH] README verbesserung --- temp-cleanup/README.md | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/temp-cleanup/README.md b/temp-cleanup/README.md index f06c8a0..6633e83 100644 --- a/temp-cleanup/README.md +++ b/temp-cleanup/README.md @@ -38,7 +38,6 @@ Der Service wird über **systemd (User oder System Service)** ausgeführt. Einfach auf einem neuen Laptop ausführen: ```bash - curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install.sh | bash ``` @@ -47,9 +46,9 @@ curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install # 🔄 Updates Das System aktualisiert sich über Git: - +``` curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install.sh | bash - +``` --- # 🕒 Ausführungszeitpunkt @@ -66,7 +65,9 @@ Der Service wird ausgeführt über systemd Trigger, z. B.: Alle Aktionen werden protokolliert in: +``` /home/kai/cleanup_temp.log +``` Enthält: - gelöschte Dateien @@ -79,14 +80,20 @@ Enthält: # 🧪 Manueller Test # Testordner + alte Datei erzeugen +``` mkdir -p ~/Dokumente/temp && \ touch -d "40 days ago" ~/Dokumente/temp/test_old_file.txt +``` # Cleanup manuell ausführen +``` bash ~/workstation-config/temp-cleanup/cleanup_temp.sh +``` # Ergebnis prüfen +``` ls ~/Dokumente/temp +``` --- @@ -100,13 +107,32 @@ ls ~/Dokumente/temp --- # 🔄 Versionierung - +``` git add . git commit -m "Update cleanup system" git push origin main +``` +--- + + +# 🧱 Architektur +Git → Source of Truth +install.sh → Bootstrap / Setup +systemd → Scheduling +cleanup_temp.sh → Logik --- -# 🧩 Zielbild +# 🧪 Debug / Troubleshooting -git clone \ No newline at end of file +Falls nichts passiert: +``` +systemctl --user daemon-reload +systemctl --user restart cleanup-temp.timer +journalctl --user -xeu cleanup-temp.service +``` +--- + +# 📦 Version + +Generated: 2026-04-25 \ No newline at end of file