Fix git deploy permissions: entrypoint chown and no remote set-url

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-06 22:45:55 +03:00
parent d10f25eb06
commit 6a6704bc4b
3 changed files with 77 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -e
# Mounted /repo belongs to host user; appuser needs write access for git deploy.
if [ "$ALLOW_GIT_DEPLOY" = "true" ] || [ "$ALLOW_GIT_DEPLOY" = "1" ] || [ "$ALLOW_GIT_DEPLOY" = "yes" ]; then
if [ -d /repo ]; then
chown -R appuser:appuser /repo
fi
fi
exec gosu appuser "$@"