update.sh hinzugefügt

automatisches updaten wird hinzugefügt
This commit is contained in:
kai
2026-04-24 11:47:11 +00:00
parent 5d3f68e41f
commit 09b71ebf7b
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
echo "🔄 Update Temp Cleanup System..."
REPO_DIR="$HOME/workstation-config"
cd "$REPO_DIR"
echo "📥 Hole Updates..."
git pull
echo "🔧 Setze Rechte..."
chmod +x temp-cleanup/cleanup_temp.sh
echo "🔄 Reload systemd..."
systemctl --user daemon-reload
echo "🔁 Restart Timer..."
systemctl --user restart cleanup-temp.timer
echo "✅ Update abgeschlossen!"