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 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ fi
|
|||||||
echo "==> Aktualisiere LinkVault in Container $CTID..."
|
echo "==> Aktualisiere LinkVault in Container $CTID..."
|
||||||
pct exec "$CTID" -- bash -c "
|
pct exec "$CTID" -- bash -c "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
git config --global --add safe.directory /opt/linkvault
|
||||||
cd /opt/linkvault
|
cd /opt/linkvault
|
||||||
|
|
||||||
if [ -n '${GIT_TOKEN}' ]; then
|
if [ -n '${GIT_TOKEN}' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user