From cc10776734150cd538047ba93b4dd99ae548602d Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Sun, 19 Jul 2026 20:45:20 +0200 Subject: [PATCH] Fix 'dubious ownership' error in update script pct exec runs as root while /opt/linkvault is owned by the linkvault user, so newer git versions refuse to operate on it. Mark the directory as safe before running git pull. Co-Authored-By: Claude Sonnet 5 --- scripts/proxmox/update-linkvault.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/proxmox/update-linkvault.sh b/scripts/proxmox/update-linkvault.sh index 243cefd..9a0d2bb 100755 --- a/scripts/proxmox/update-linkvault.sh +++ b/scripts/proxmox/update-linkvault.sh @@ -30,6 +30,7 @@ fi echo "==> Aktualisiere LinkVault in Container $CTID..." pct exec "$CTID" -- bash -c " set -euo pipefail +git config --global --add safe.directory /opt/linkvault cd /opt/linkvault if [ -n '${GIT_TOKEN}' ]; then