From 0a0fd454bbe53a319f51aebf19056b24f4b076cd Mon Sep 17 00:00:00 2001 From: Michael Hermann Date: Mon, 17 Aug 2026 13:04:40 +0200 Subject: [PATCH] =?UTF-8?q?H=C3=A4rte=20Server-Deploy=20gegen=20dubious-ow?= =?UTF-8?q?nership=20nach=20Mac-rsync.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Git als root in /opt/explore setzt safe.directory, damit der Checkout nicht an uid 501 scheitert. Co-authored-by: Cursor --- .gitea/workflows/deploy.yml | 5 +++++ deploy.sh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2681ed5..53a6c9f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -32,7 +32,12 @@ jobs: set -euo pipefail echo "Starting explore deployment..." mkdir -p /opt/explore + chown root:root /opt/explore cd /opt/explore + # rsync vom Mac setzt uid 501 — Git als root braucht safe.directory + export GIT_CONFIG_COUNT=1 + export GIT_CONFIG_KEY_0=safe.directory + export GIT_CONFIG_VALUE_0=/opt/explore if [ ! -d .git ]; then git init diff --git a/deploy.sh b/deploy.sh index b305f4c..2f7435b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -18,6 +18,10 @@ fi mkdir -p "$PROJECT_DIR" cd "$PROJECT_DIR" +# rsync vom Mac setzt uid 501 — Git als root braucht safe.directory +export GIT_CONFIG_COUNT=1 +export GIT_CONFIG_KEY_0=safe.directory +export GIT_CONFIG_VALUE_0="$PROJECT_DIR" if [ ! -d .git ]; then if git ls-remote "$GITEA_URL" HEAD &>/dev/null; then