From 96e2b4d5ab6eab792a9b1cdf50ff329734bfa0c9 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 08:57:29 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20.git/objects-Rechte=20werden=20automatis?= =?UTF-8?q?ch=20repariert=20(root-L=C3=A4ufe)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- scripts/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/update.sh b/scripts/update.sh index cc3ca61..7947c67 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -68,6 +68,9 @@ artisan_up(){ git_safe(){ # Falls nötig: Repo als safe markieren (z.B. wenn Root den Wrapper aufruft) as_app "git -C ${APP_DIR} config --global --add safe.directory ${APP_DIR} >/dev/null 2>&1 || true" + # .git/objects-Rechte reparieren: root-Läufe können Objekte mit falschen Rechten anlegen + find "${APP_DIR}/.git/objects" -not -user "$APP_USER" \ + -exec chown "$APP_USER":"$APP_GROUP" {} \; 2>/dev/null || true } git_dirty_check(){