README verbesserung
This commit is contained in:
+32
-6
@@ -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 <repo>
|
||||
Falls nichts passiert:
|
||||
```
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user restart cleanup-temp.timer
|
||||
journalctl --user -xeu cleanup-temp.service
|
||||
```
|
||||
---
|
||||
|
||||
# 📦 Version
|
||||
|
||||
Generated: 2026-04-25
|
||||
Reference in New Issue
Block a user