09b71ebf7b
automatisches updaten wird hinzugefügt
23 lines
398 B
Bash
23 lines
398 B
Bash
#!/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!" |