From ec6d9cf86e40bc4da124a398e154ca6a6e7f59b7 Mon Sep 17 00:00:00 2001 From: orfelorfel23 Date: Tue, 8 Sep 2026 17:20:34 +0200 Subject: [PATCH] feat(entrypoint): Vault-Remote mit Sync-Token und Git-User konfigurieren --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 3749bfe..ab67956 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,11 @@ mkdir -p "$VAULT_DIR" if command -v git >/dev/null 2>&1; then git config --global --add safe.directory "$VAULT_DIR" 2>/dev/null || true if [ -d "$VAULT_DIR/.git" ]; then + if [ -n "$VAULT_SYNC_TOKEN" ]; then + git -C "$VAULT_DIR" remote set-url origin "https://${VAULT_SYNC_TOKEN}@git.orfel.de/Jannik/Mind-o-Mat-Vault.git" 2>/dev/null || true + fi + git -C "$VAULT_DIR" config user.name "Mind-o-Mat Server" 2>/dev/null || true + git -C "$VAULT_DIR" config user.email "mindomat@orfel.de" 2>/dev/null || true echo "[Git] Pulling latest changes from remote..." (cd "$VAULT_DIR" && git pull --ff-only 2>/dev/null) || echo "[Git] Git pull skipped or offline" fi