diff --git a/temp-cleanup/update.sh b/temp-cleanup/update.sh new file mode 100644 index 0000000..794f2a8 --- /dev/null +++ b/temp-cleanup/update.sh @@ -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!" \ No newline at end of file