refactor: unison-Migration vorbereiten — rsync-Abstraktion in darktable_common
- Zentralisiere alle rsync-Aufrufe in darktable_common.sh mit perform_rsync() - Trockenlauf-Flag-Handling in Gemeinsam-Funktionen - perform_rsync() gibt Zeilenanzahl zurück für Trockenlauf-Zählwerte - darktable_sync.sh nutzt nur noch perform_rsync(), reduziert Duplikation - Testabdeckung für perform_rsync() + rsync-Fehlerbehandlung erweitert - CLAUDE.md mit unison-Migration-Absicht dokumentiert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-2
@@ -88,11 +88,17 @@ echo ""
|
||||
|
||||
echo "Abhaengigkeiten pruefen..."
|
||||
|
||||
REQUIRED_CMDS=("rsync" "notify-send" "darktable" "systemctl" "ssh")
|
||||
REQUIRED_CMDS=("unison" "notify-send" "darktable" "systemctl" "ssh")
|
||||
for cmd in "${REQUIRED_CMDS[@]}"; do
|
||||
if ! command -v "$cmd" >/dev/null 2>&1; then
|
||||
echo "Fehler: '$cmd' ist nicht installiert."
|
||||
echo " Installieren mit: sudo apt install $cmd"
|
||||
if [ "$cmd" = "unison" ]; then
|
||||
echo " Installieren mit: sudo apt install unison"
|
||||
echo " WICHTIG: Unison muss auch auf dem Server installiert sein (gleiche Version):"
|
||||
echo " ssh $SERVER_USER@$SERVER_IP sudo apt install unison"
|
||||
else
|
||||
echo " Installieren mit: sudo apt install $cmd"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user