diff --git a/rootfs/opt/git-sync/git-sync.sh b/rootfs/opt/git-sync/git-sync.sh deleted file mode 100644 index fb88644..0000000 --- a/rootfs/opt/git-sync/git-sync.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -REPO="/opt/git-sync/" -TARGET="/" - -# sicherstellen dass Repo existiert -if [ ! -d "$REPO/.git" ]; then - echo "Git-Repo nicht gefunden: $REPO" - exit 1 -fi - -# Aktualisieren -cd "$REPO" || exit 1 -git stash push -m "auto-sync" -git pull --rebase -git stash pop - - -# Dateien verteilen (rootfs → /) -sudo rsync -a rootfs/ "$TARGET" - -sudo -u andre chmod 600 /home/andre/.ssh/* - -exit 0