versehentlich falscher pfad
This commit is contained in:
@@ -1,19 +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 pull --rebase
|
|
||||||
|
|
||||||
# Dateien verteilen (rootfs → /)
|
|
||||||
sudo rsync -a rootfs/ "$TARGET"
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
Reference in New Issue
Block a user