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:
|
Einfach auf einem neuen Laptop ausführen:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install.sh | 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
|
# 🔄 Updates
|
||||||
|
|
||||||
Das System aktualisiert sich über Git:
|
Das System aktualisiert sich über Git:
|
||||||
|
```
|
||||||
curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install.sh | bash
|
curl -s http://192.168.178.5:3000/kai/workstation-config/raw/branch/main/install.sh | bash
|
||||||
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
# 🕒 Ausführungszeitpunkt
|
# 🕒 Ausführungszeitpunkt
|
||||||
@@ -66,7 +65,9 @@ Der Service wird ausgeführt über systemd Trigger, z. B.:
|
|||||||
|
|
||||||
Alle Aktionen werden protokolliert in:
|
Alle Aktionen werden protokolliert in:
|
||||||
|
|
||||||
|
```
|
||||||
/home/kai/cleanup_temp.log
|
/home/kai/cleanup_temp.log
|
||||||
|
```
|
||||||
|
|
||||||
Enthält:
|
Enthält:
|
||||||
- gelöschte Dateien
|
- gelöschte Dateien
|
||||||
@@ -79,14 +80,20 @@ Enthält:
|
|||||||
# 🧪 Manueller Test
|
# 🧪 Manueller Test
|
||||||
|
|
||||||
# Testordner + alte Datei erzeugen
|
# Testordner + alte Datei erzeugen
|
||||||
|
```
|
||||||
mkdir -p ~/Dokumente/temp && \
|
mkdir -p ~/Dokumente/temp && \
|
||||||
touch -d "40 days ago" ~/Dokumente/temp/test_old_file.txt
|
touch -d "40 days ago" ~/Dokumente/temp/test_old_file.txt
|
||||||
|
```
|
||||||
|
|
||||||
# Cleanup manuell ausführen
|
# Cleanup manuell ausführen
|
||||||
|
```
|
||||||
bash ~/workstation-config/temp-cleanup/cleanup_temp.sh
|
bash ~/workstation-config/temp-cleanup/cleanup_temp.sh
|
||||||
|
```
|
||||||
|
|
||||||
# Ergebnis prüfen
|
# Ergebnis prüfen
|
||||||
|
```
|
||||||
ls ~/Dokumente/temp
|
ls ~/Dokumente/temp
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -100,13 +107,32 @@ ls ~/Dokumente/temp
|
|||||||
---
|
---
|
||||||
|
|
||||||
# 🔄 Versionierung
|
# 🔄 Versionierung
|
||||||
|
```
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update cleanup system"
|
git commit -m "Update cleanup system"
|
||||||
git push origin main
|
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