From 09b71ebf7b9a56ff7c59ddfd30888870a1bd4b40 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 24 Apr 2026 11:47:11 +0000 Subject: [PATCH] =?UTF-8?q?update.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit automatisches updaten wird hinzugefügt --- temp-cleanup/update.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 temp-cleanup/update.sh 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