From f56dde052c9d1837431a4d585c66bf045c480e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Gei=C3=9Fler?= Date: Sat, 29 Nov 2025 23:46:27 +0100 Subject: [PATCH] idadia --- rootfs/opt/git-sync/git-sync.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 rootfs/opt/git-sync/git-sync.sh 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